Google Maps code

Phoca Maps - displaying maps in Joomla! CMS
kerangat
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 21 Jan 2019, 13:31

Google Maps code

Post by kerangat »

Hello, I have been using Phoca maps with google maps for a few years with no issues. Recently, I have updated my site to Joomla version, 3.9.2. and have "refreshed" some articles. I have an issue with one article where when inserting the {phocamaps view=map|id=4} variable, the resulting doesn't display a Google map, but rather, a lengthy set of code starting with" }); google.maps.event.addListener(markerPhocaMarker2PlgPM1, 'click', function() { infoPhocaWindow2PlgPM1.open(mapPhocaMapPlgPM1, markerPhocaMarker2PlgPM1 ); }); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1); "

The {phocamaps view=map|id=4} displays a map with OpenStreetMaps
The {phocamaps view=map|id=4} variable, in another article works fine with Google Maps.
The Link variable {phocamaps view=link|id=4|text=Map to us} in a module, works fine with Google Maps.

What did I do wrong?

Thank you in advance.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Google Maps code

Post by Jan »

Hi, this seems like some javascript error is rendered before displayed maps and it can somehow influence the next javascript code. Try to see if there are no conflicts on the site where this occurs, see:
https://www.phoca.cz/documents/16-jooml ... -conflicts

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