Two or three different Google Maps in the article

Phoca Maps - displaying maps in Joomla! CMS
wezykowski
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Oct 2021, 21:38

Two or three different Google Maps in the article

Post by wezykowski »

Have any of you managed to include two or three different Google maps in one article? Do your maps display correctly?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9580
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Two or three different Google Maps in the article

Post by Benno »

Hi,
I cannot answer whether and how this works with Google Maps. I no longer invest any time in Google products. But with OpenStreetMap it's no problem:
Image

Kind regards,
Benno
wezykowski
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Oct 2021, 21:38

Re: Two or three different Google Maps in the article

Post by wezykowski »

Google Maps doesn't work if there are more than 1.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48528
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two or three different Google Maps in the article

Post by Jan »

Hi, testing now, everything is OK for me, I normally run e.g. 3 Google Maps on the article page. Try to see Javascript console of the browser if there is no Javascript error on your site which can prevent from displaying the maps :idea:

Jan
If you find Phoca extensions useful, please support the project
wezykowski
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Oct 2021, 21:38

Re: Two or three different Google Maps in the article

Post by wezykowski »

Indeed. The problem only occurs when we want to insert two different google maps through the module. How can this be done?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48528
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two or three different Google Maps in the article

Post by Jan »

Hi, what do you mean with "through the module"?

Jan
If you find Phoca extensions useful, please support the project
wezykowski
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Oct 2021, 21:38

Re: Two or three different Google Maps in the article

Post by wezykowski »

I create a module, in this module enter the map code, and then place the module on the website.
In this way I would like to show different maps to different recipients.
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: Two or three different Google Maps in the article

Post by christine »

Hi,

Not sure: If this is a custom module, try: Options: Prepare content Yes

Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48528
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Two or three different Google Maps in the article

Post by Jan »

When you add the codes to the article, is it OK? The plugin in article can check for loaded Javascript libraries, so maybe this can be somehow wrong in module. So no error message in Javascript console?

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