Page 1 of 2
problem to display map (joomla 3.8.7)
Posted: 30 Apr 2018, 14:02
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
Re: problem to display map (joomla 3.8.7)
Posted: 02 May 2018, 15:07
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
Re: problem to display map (joomla 3.8.7)
Posted: 03 May 2018, 08:47
by MAI
Hello
thanks a lot
it works
no description first, i added it
bye
Re: problem to display map (joomla 3.8.7)
Posted: 08 May 2018, 12:40
by Jan
Ok
Re: problem to display map (joomla 3.8.7)
Posted: 28 May 2018, 19:16
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
Re: problem to display map (joomla 3.8.7)
Posted: 28 May 2018, 23:17
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
Re: problem to display map (joomla 3.8.7)
Posted: 29 May 2018, 14:51
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
Re: problem to display map (joomla 3.8.7)
Posted: 29 May 2018, 18:32
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
Maybe there is another javascript error on the site which can break the following code, try to see it with javascript error console
https://www.phoca.cz/documents/16-jooml ... -conflicts
Jan
Re: problem to display map (joomla 3.8.7)
Posted: 30 May 2018, 14:59
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]
Re: problem to display map (joomla 3.8.7)
Posted: 31 May 2018, 13:45
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
Jan