simplemap
simplemap copied to clipboard
Multiple maps on same page
Multiple maps on the same page throws a js error and causes some of the maps not to load.
@samuelbirch Is this in the control panel, or embeding?
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.
@Tam This issue also occurs in the control panel.
Craft 3.7.51
Maps 3.9.4
