Included the API multiple times error.

Phoca Maps - displaying maps in Joomla! CMS
guavaa
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Nov 2018, 15:57

Included the API multiple times error.

Post 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

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Included the API multiple times error.

Post 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
If you find Phoca extensions useful, please support the project
guavaa
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Nov 2018, 15:57

Re: Included the API multiple times error.

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Included the API multiple times error.

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply