"Google Map" property editor in Umbraco... How to set the ApiKey?

612 Views Asked by At

I have in an Umbraco (v6) BO a property showing a GoogleMap. The property is like this (the property editor is a "Google Map", as can be seen in the BackOffice's Developer tab).

enter image description here

so the property displays the map in the Umbraco's BO, but "for development purposes only".

enter image description here

and, in the console, I see a warning saying:

Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

Supposing I have a Google API key, where should I put it, to remove this message?

1

There are 1 best solutions below

0
serge On

Finally, found the solution:

The component used in the google maps field is Google Maps DataType. Its sources are on GitHub.

We used the 2.0.0 version, that didn't have the API Key field in the BO (as can be seen from the OP screenshot). Now has to get the sources and recompile the 2.2.0 version, then update the DLL on the server. After that the API Key text field appeared in the BO's (Developer section => DataTypes).

The API Key is the same as for the BO's hosting domain.