Page 1 of 1

Google Maps code

Posted: 21 Jan 2019, 14:03
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.

Re: Google Maps code

Posted: 27 Jan 2019, 20:39
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