Maps shown only when Marker = off

Phoca Maps - displaying maps in Joomla! CMS
Heodrene
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 18 Aug 2011, 11:39

Re: Maps shown only when Marker = off

Post by Heodrene »

Hi all,

I have a similar problem with Joomla v1.7 and the last version of Phocamaps (Com = 201 and Plg = 2.0.3).
I try with Mozilla v5 and IE9.
If I activate the marker, I get this error :
"' }); google.maps.event.addListener(markerPhocaMarker1PlgPM1, 'click', function() { infoPhocaWindow1PlgPM1.open(mapPhocaMapPlgPM1, markerPhocaMarker1PlgPM1 ); }); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'mousewheel', CancelEventPhocaMapPlgPM1); } } function initializePlgPM1() { tstPhocaMapPlgPM1.setAttribute("oldValuePlgPM1",0); tstPhocaMapPlgPM1.setAttribute("refreshMapPlgPM1",0); tstIntPhocaMapPlgPM1 = setInterval("CheckPhocaMapPlgPM1()",500); } google.setOnLoadCallback(initializePlgPM1); //]]>
;"

If I activate the "Get route" option, I get this error :
"' }); google.maps.event.addListener(markerPhocaMarker1PlgPM1, 'click', function() { infoPhocaWindow1PlgPM1.open(mapPhocaMapPlgPM1, markerPhocaMarker1PlgPM1 ); }); phocaDirServicePlgPM1 = new google.maps.DirectionsService(); phocaDirDisplayPlgPM1 = new google.maps.DirectionsRenderer(); phocaDirDisplayPlgPM1.setMap(mapPhocaMapPlgPM1); phocaDirDisplayPlgPM1.setPanel(document.getElementById("phocaDirPlgPM1")); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1); google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'mousewheel', CancelEventPhocaMapPlgPM1); } } function setPhocaDirPlgPM1(fromPMAddressPlgPM1, toPMAddressPlgPM1) { var requestPlgPM1 = { origin: fromPMAddressPlgPM1, destination: toPMAddressPlgPM1, travelMode: google.maps.DirectionsTravelMode.DRIVING }; phocaDirServicePlgPM1.route(requestPlgPM1, function(responsePlgPM1, statusPlgPM1) { if (statusPlgPM1 == google.maps.DirectionsStatus.OK) { pPIPlgPM1 = document.getElementById('phocaMapsPrintIconPlgPM1'); pPIPlgPM1.style.display='block'; var from64PlgPM1 = Base64.encode(fromPMAddressPlgPM1).toString(); var to64PlgPM1 = Base64.encode(toPMAddressPlgPM1).toString(); pPIPlgPM1.innerHTML = '"

And the print button is displayed but follows this error:
"'; phocaDirDisplayPlgPM1.setDirections(responsePlgPM1); } else if (google.maps.DirectionsStatus.NOT_FOND) { alert("One of the locations specified in the requests's origin, destination, or waypoints could not be geocoded."); } else if (google.maps.DirectionsStatus.ZERO_RESULTS) { alert("No route could be found between the origin and destination."); } else if (google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED) { alert("Too many DirectionsWaypoints were provided in the DirectionsRequest."); } else if (google.maps.DirectionsStatus.OVER_QUERY_LIMIT) { alert("Webpage has sent too many requests within the allowed time period."); } else if (google.maps.DirectionsStatus.INVALID_REQUEST) { alert("The provided DirectionsRequest was invalid."); } else if (google.maps.DirectionsStatus.REQUEST_DENIED) { alert("Webpage is not allowed to use the directions service."); } else if (google.maps.DirectionsStatus.UNKNOWN_ERROR) { alert("Directions request could not be processed due to a server error. The request may succeed if you try again."); } else { alert("Directions request could not be processed due to a server error. The request may succeed if you try again."); } }); } function initializePlgPM1() { tstPhocaMapPlgPM1.setAttribute("oldValuePlgPM1",0); tstPhocaMapPlgPM1.setAttribute("refreshMapPlgPM1",0); tstIntPhocaMapPlgPM1 = setInterval("CheckPhocaMapPlgPM1()",500); } google.setOnLoadCallback(initializePlgPM1); //]]>"

I need to deactivate the marker and "get route" to see the map :( But, of course, I need to display markers ;)

Regards,

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

Re: Maps shown only when Marker = off

Post by Jan »

Hi, testing again, no problems there, did you recheck all the javascript loaded on your site, if there is not rendered some error before the google maps javascript :idea:

Jan
If you find Phoca extensions useful, please support the project
jmironet
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Oct 2011, 23:56

Re: Maps shown only when Marker = off

Post by jmironet »

I have the same problem with joomla 1.5 and 1.7, but I installed and blank installation and work correctly. I think so that the problem any plugin or componen, How can I test my site with java console?

Regards
jmironet
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Oct 2011, 23:56

Re: Maps shown only when Marker = off

Post by jmironet »

I find a sollution for joomla 1.7, if you do not use the plugin and link the map from options of menu work correctly.
but still fails with version 1.5, I will continue doing tests to see if you can solve
regards
jmironet
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Oct 2011, 23:56

Re: Maps shown only when Marker = off

Post by jmironet »

I have finally found the problem with 1.5, I use jce editor, add this code


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>

</body>
</html>

you can change the editor and deleting this html and the module is working properly.

I hope that helps
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Maps shown only when Marker = off

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
dueggi
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 19 Oct 2011, 19:26

Re: Maps shown only when Marker = off

Post by dueggi »

Hallo. I have same problem.
This problem occurs when i write an email on description marker.
Just remove email or write with spaces in between (ex. a @ b.com) and solve the problem.

Great work.
dueggi

n.b.: I use joomla 1.7
Post Reply