collective / collective.geolocationbehavior

Dexterity based behaviors for geotagging.
2 stars 2 forks source link

Errors rendering multiple maps on one page (related to Google Maps although OSM is used only) #3

Open zopyx opened 5 years ago

zopyx commented 5 years ago

We are trying to render multiple maps (coming from several aggregated content objects with geolocation behavior enabled).

This leads to an the following JS error which is related to Google Maps although the maps are rendered using OSM.

You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
rh @ js?v=3&callback=onLoadGoogleApiCallback&sensor=false:125
zh @ js?v=3&callback=onLoadGoogleApiCallback&sensor=false:123
google.maps.Load @ js?v=3&callback=onLoadGoogleApiCallback&sensor=false:21
(anonymous) @ js?v=3&callback=onLoadGoogleApiCallback&sensor=false:203
(anonymous) @ js?v=3&callback=onLoadGoogleApiCallback&sensor=false:203

There is an additional JS error related to Google Maps:

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