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
Included the API multiple times error.
-
- Phoca Newbie
- Posts: 2
- Joined: 27 Nov 2018, 15:57
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Included the API multiple times error.
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
When you switch to OpenStreetMaps (for test only), do you get the same problem?
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 27 Nov 2018, 15:57
Re: Included the API multiple times error.
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.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Included the API multiple times error.
Ok, great to hear it.
Jan
Jan
If you find Phoca extensions useful, please support the project