Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple maps on same page #320

Open
samuelbirch opened this issue Aug 9, 2021 · 3 comments
Open

Multiple maps on same page #320

samuelbirch opened this issue Aug 9, 2021 · 3 comments

Comments

@samuelbirch
Copy link

Multiple maps on the same page throws a js error and causes some of the maps not to load.

@Tam
Copy link
Member

Tam commented Jul 11, 2022

@samuelbirch Is this in the control panel, or embeding?

@tigerchick
Copy link

I just noticed the same. It's on embedding (on the front end rather than in the control panel).
These are the errors:
"You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors."

"Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'g')
at js?key=XXX&callback=init_mapidXXX:187:153"

"Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'h')
at Yi.data.Jf.map (js?key=XXX&callback=init_mapidXXX:189:178)"

Where you read XXX I have replaced the actual api key or map id value with junk!

Hope this helps.

@br-designer
Copy link

@Tam This issue also occurs in the control panel.

Craft 3.7.51
Maps 3.9.4
Screen Shot 2022-08-12 at 9 54 11 AM
Screen Shot 2022-08-12 at 9 54 17 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants