optimap icon indicating copy to clipboard operation
optimap copied to clipboard

Map API

Open simsanderson opened this issue 9 years ago • 3 comments

Map won't load, and in console it says api key not valid. Where do I supply this in the code?

simsanderson avatar Sep 14 '16 12:09 simsanderson

Hi @simsanderson, you will find that the HTML is incluinding the google apis script on the address http://www.google.com/jsapi, just change it to http://www.google.com/jsapi?key=YOU_KEY_HERE.

esganzerla avatar Sep 14 '16 16:09 esganzerla

Hello @esganzerla and @simsanderson and @geirke I have made this change to http://www.google.com/jsapi?key=YOU_KEY_HERE and double checked my api key does have billing enabled (it does) but I am still getting the issue "This page can't load Google Maps correctly." and the map is all gray squares saying for development purposes only.

Please help!

lyndon-penson avatar Sep 06 '18 08:09 lyndon-penson

@lyndon-penson jsapi is method of loading Google Maps is deprecated. Your JavaScript console probably has this warning:

Loading Maps API with the jsapi loader is deprecated.

From the docs:

If you are loading Maps JavaScript API from the deprecated v2 path, you will get the NoApiKeys warning, even if you specified the key parameter. Please check the v2 to v3 upgrade guide and migrate your application to Maps JavaScript API v3.

Geremia avatar Sep 13 '20 03:09 Geremia