I'm trying to use a GoogleLayer with google API auth.
The GoogleMapsLayer takes a clientId and a privateKey as string, where do I get the privateKey ?
In my API Console I have a client Id, and downloaded a P12 file for Service Account type.
What to do next ? Am I doing wrong ?
Hi Alexandre, Thanks for your post, as far as I know, the private key could be got from the P12 file, double click the P12 file then the “Certificate Import Wizard” will appear, follow the dialog window untill the password, input :”notasecret” to open it. Here is two links for your information: stackoverflow.com/questions/11534438/what-is-the-google-api-password-for-the-oauth-pkcs-p12-private-key developers.google.com/console/help/ After getting the privatekey, you could use this constructor: GoogleMapsLayer a = new GoogleMapsLayer(cacheDirectory, clientId, privateKey); Hope it helps Johnny