Incompatibility Phoca Maps with RokBooster

Phoca Maps - displaying maps in Joomla! CMS
lukasz
Phoca Member
Phoca Member
Posts: 13
Joined: 14 Feb 2013, 17:24

Incompatibility Phoca Maps with RokBooster

Post by lukasz »

Hi,

I currently use RokGZipper to optymalize my site. Unfortunately, RokGZipper is no longer being developed.

I wanted to change for RokBooster (successor RokGZipper), which has more features than its predecessor. Unfortunately, there are problems with Phoca Maps displays and for that reason I would not activate RokBooster.

I know that you planned a new Phoca Maps version for Joomla 3.0. Could you also look at this problem? I would be very grateful :)

Steps to reproduce the problem:
1. Install Phoca Maps and RokBooster on Joomla 2.5.x.
2. Enable RokBooster plugin.
3. Add new map (Components -> Phoca Maps -> Maps -> Create) and publish.
4. Adding a new menu item (Map View).
5. Go to the subpage with the map.

Enabling RokBooster displays it on subpage (frontend):

Code: Select all

' }); google.maps.event.addListener(markerPhocaMarker1, 'click', function() { infoPhocaWindow1.open(mapPhocaMap, markerPhocaMarker1 ); }); phocaDirService = new google.maps.DirectionsService(); phocaDirDisplay = new google.maps.DirectionsRenderer(); phocaDirDisplay.setMap(mapPhocaMap); phocaDirDisplay.setPanel(document.getElementById("phocaDir")); google.maps.event.addDomListener(tstPhocaMap, 'DOMMouseScroll', CancelEventPhocaMap); google.maps.event.addDomListener(tstPhocaMap, 'mousewheel', CancelEventPhocaMap); } } function setPhocaDir(fromPMAddress, toPMAddress) { var request = { origin: fromPMAddress, destination:	toPMAddress, travelMode: google.maps.DirectionsTravelMode.DRIVING }; phocaDirService.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { pPI = document.getElementById('phocaMapsPrintIcon'); pPI.style.display='block'; var from64 = Base64.encode(fromPMAddress).toString(); var to64 = Base64.encode(toPMAddress).toString(); pPI.innerHTML = '
Last edited by lukasz on 14 Feb 2013, 21:44, edited 8 times in total.
lukasz
Phoca Member
Phoca Member
Posts: 13
Joined: 14 Feb 2013, 17:24

Re: Incompatibility Phoca Maps with RokBooster

Post by lukasz »

and:

Code: Select all

'; phocaDirDisplay.setDirections(response); } 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 initialize() { tstPhocaMap.setAttribute("oldValue",0); tstPhocaMap.setAttribute("refreshMap",0); tstIntPhocaMap = setInterval("CheckPhocaMap()",500); } google.setOnLoadCallback(initialize); //]]>
Thank you in advance!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Incompatibility Phoca Maps with RokBooster

Post by Jan »

Hi, unfortunatelly I have no experiences with RokBoost so really no idea what is wrong and what exactly it does do?
If you find Phoca extensions useful, please support the project
lukasz
Phoca Member
Phoca Member
Posts: 13
Joined: 14 Feb 2013, 17:24

Re: Incompatibility Phoca Maps with RokBooster

Post by lukasz »

So exactly it looks. On the occasion of the side modules are falling down. Where normally displays a map, it is gray. In this it is like in the screenshot.

Image
marcQC
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Feb 2015, 17:03

Re: Incompatibility Phoca Maps with RokBooster

Post by marcQC »

I have the same issu, someone have a solution? thank you!
marcQC
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Feb 2015, 17:03

Re: Incompatibility Phoca Maps with RokBooster

Post by marcQC »

It looks like joomla add a balise </script> for no reason.

map/tmpl/default.php
line 133

Code: Select all

$text = '<div style="'.$hStyle.'">' . addslashes($markerV->title) . '</div>';
Joomla add </script> between addslashes($markerV->title) AND. '</div>'

because it appear like this:

Code: Select all

content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">Title</script></div><div></div>'
UPDATE:
the tag </script> appear before the first </div> that he meet.
marcQC
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Feb 2015, 17:03

Re: Incompatibility Phoca Maps with RokBooster

Post by marcQC »

I found the solution. You need to replace the </div> by <&#47;div> .
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Incompatibility Phoca Maps with RokBooster

Post by Jan »

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