-1

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?

serge
  • 13,940
  • 35
  • 121
  • 205
  • Is this what you're looking for? Step 2: https://developers.google.com/maps/documentation/javascript/get-api-key – Jabberwocky Jan 22 '19 at 17:35
  • yes, you sent me the same link I put in the OP, but is not clear *where* should I add this request, in what page, what file? – serge Jan 23 '19 at 10:50
  • Well, if there's no field that you can throw the script in, then maybe code it in the view? (I'm assuming it's MVC). – Jabberwocky Jan 23 '19 at 13:58
  • what view, this is a BackOffice component – serge Jan 23 '19 at 14:21
  • What I'm saying is that to verify the api you need to basically throw a script in the view (as in the .cshtml). If the developer that created that backoffice didn't do it, you'll have to do it or actually go in the code and throw the verification script. – Jabberwocky Jan 23 '19 at 14:21

1 Answers1

1

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.

serge
  • 13,940
  • 35
  • 121
  • 205