collective / collective/collective.geolocationbehavior

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

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.