problem to display map (joomla 3.8.7)

Phoca Maps - displaying maps in Joomla! CMS
MAI
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 30 Apr 2018, 11:58

problem to display map (joomla 3.8.7)

Post by MAI »

hello
i installed phocamaps component 3.04 + plugin 3.04.
option custom module - Prepare Content=Yes
and i have this error

' }); google.maps.event.addListener(markerPhocaMarker1PlgPM1, 'click', function() { infoPhocaWindow1PlgPM1.open(mapPhocaMapPlgPM1, markerPhocaMarker1PlgPM1 ); }); google.maps.event.trigger(markerPhocaMarker1PlgPM1, 'click'); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'mousewheel', CancelEventPhocaMapPlgPM1); } } function initMapPlgPM1() { tstPhocaMapPlgPM1.setAttribute("oldValuePlgPM1",0); tstPhocaMapPlgPM1.setAttribute("refreshMapPlgPM1",0); tstIntPhocaMapPlgPM1 = setInterval("CheckPhocaMapPlgPM1()",500); } //]]>


link http://atlantique-piscines.com/dev/inde ... e-piscines

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

Re: problem to display map (joomla 3.8.7)

Post by Jan »

Hi, the maps is not displayed because of javascript error.

This errors comes from description of Info window. First try to unpublish the marker to see if the maps is correctly displayed, then try to publish the marker but remove the content/description of it - to test if this will work - then add the content to the marker description but check if it was correctly saved by the editor (because for now it seems like the content was not correctly created and saved - broken html)

Jan
If you find Phoca extensions useful, please support the project
MAI
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 30 Apr 2018, 11:58

Re: problem to display map (joomla 3.8.7)

Post by MAI »

Hello

thanks a lot
it works

no description first, i added it

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

Re: problem to display map (joomla 3.8.7)

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
webmasterinaffitto
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 May 2018, 14:17

Re: problem to display map (joomla 3.8.7)

Post by webmasterinaffitto »

Hi,
I've tried your suggestion but after it display the map for a second then give javascript error.
What can I do?

This is the page:

https://salesianiperlosport.org/vincere-verticale.html
christine
Phoca Hero
Phoca Hero
Posts: 2725
Joined: 28 Nov 2010, 17:20

Re: problem to display map (joomla 3.8.7)

Post by christine »

Hi,

it's not the same error as user MAI had. JS error is:
Google Maps JavaScript API error: RefererNotAllowedMapError .........//developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error Your site ......
so you have to check/insert the correct referer. see here please: https://stackoverflow.com/questions/352 ... le_rich_qa

e.g (from above link):
All subdomains of a specified domain are also authorized.

If ..//example.com is authorized, then ..://www.example.com is also authorized. The reverse is not true: if ...//www.example.com is authorized, ... //example.com is not necessarily authorized


Then I checked your given URL:
error: https://salesianiperlosport.org/vincere-verticale.html
no error: https://www.salesianiperlosport.org/vin ... icale.html

Kind regards
Christine
webmasterinaffitto
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 May 2018, 14:17

Re: problem to display map (joomla 3.8.7)

Post by webmasterinaffitto »

Hi Christine,
thank you for help. I've solved this but not with the marker.

Into the "Description" of this mark, for example, I've only:

Code: Select all

<p>Torino</p>
<p>Calcio a 11, calcio a 7, calcio a 5, mountain byke</p>
<p><a href="//www.asbiosferasport.altervista.org/">www.asbiosferasport.altervista.org</a></p>
but as you can see at the page it not show the map and give error writing code under the maps.

https://www.salesianiperlosport.org/vin ... icale.html

Since some weeks ago it worked perfeclty, nothing is change but Google api
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem to display map (joomla 3.8.7)

Post by Jan »

Hi, it seems like the javascript code is broken there. Maybe it is somehow done by the markers, but the marker content is simple, so it should not be made by the content :idea:
Maybe there is another javascript error on the site which can break the following code, try to see it with javascript error console :idea:

https://www.phoca.cz/documents/16-jooml ... -conflicts

Jan
If you find Phoca extensions useful, please support the project
webmasterinaffitto
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 May 2018, 14:17

Re: problem to display map (joomla 3.8.7)

Post by webmasterinaffitto »

Is this usefull to understand the problem?

Code: Select all

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead[Ulteriori informazioni] jquery.js:1
SyntaxError: '' literal not terminated before end of script vincere-verticale.html:238:93
[Visualizza/nascondi dettagli messaggio.] ReferenceError: initMapPlgPM1 is not defined[Ulteriori informazioni] vincere-verticale.html:267:4
unreachable code after return statement[Ulteriori informazioni]
js:69:1217
Errore mapping di origine: request failed with status 404
URL risorsa: https://www.salesianiperlosport.org/templates/salesport/jquery.js
URL mapping di origine: jquery.min.map[Ulteriori informazioni]
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem to display map (joomla 3.8.7)

Post by Jan »

No :-( I think you need to try to dable all the markers and enable it step by step and check if you still get the error:

- when the error displays even all markers will be disabled, then the error comes from another place
- when the error does not display when markers will be disabled, try to enable them step by step and check which marker can be problematic - then if marker found - try to see the description text (raw html of this text), if e.g. editor didn't add some specific code which can be problematic in javascript :idea:

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