Page 1 of 1

Included the API multiple times error.

Posted: 28 Nov 2018, 16:12
by guavaa
I am trying to show maps for 5 regions. The map should be shown on the right if you click on the region.
https://www.muravidek.re/index.php/en/tourism.html

I use modules, I added the Phoca Maps shortcode into custom html modules. And then I am just hiding and showing divs with modules.
But the maps are not showing, or not all of them.

And I have this error in the console:
You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.

Any solutions?

thanks in advance

Re: Included the API multiple times error.

Posted: 29 Nov 2018, 11:59
by Jan
Hi, yes, there is such message displayed in Javascript console, when more instances of Google Maps are displayed on the site but usually they are displayed well. Didn't you get any other error message there?

When you switch to OpenStreetMaps (for test only), do you get the same problem?

Jan

Re: Included the API multiple times error.

Posted: 29 Nov 2018, 12:52
by guavaa
i manged to solve it. I was using modules for every map. But now I created articles and added the article to the module and in works now.

Re: Included the API multiple times error.

Posted: 01 Dec 2018, 18:00
by Jan
Ok, great to hear it.

Jan