FF map with marker breaks javascript.
Posted: 20 Nov 2012, 22:48
Hi, I found this Google map component/plugin (2.0.5) easy to use but when doing final browser tests it doesn't work with FF 10.0.1, 12.0 or 17.0.
As soon as I put any markers on the map I get a couple of "<div>" in the middle of the javascript. See middle of code snippet below.
Made things as simple as possible with most defaults and clean article with one map and no other stuff but still the same problem.
[code]
...
title:"Grondal",
icon:phocaImagedefault5PlgPM1,
shadow:phocaImageShadowdefault5PlgPM1,
shape:phocaImageShapedefault5PlgPM1,
position: phocaPoint1PlgPM1,
map: mapPhocaMapPlgPM1
});
var infoPhocaWindow1PlgPM1 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">Grondal</script>
</div>
<div></div>'
});
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); }
}
...
[/code]
Any ideas about this?
Edit: Running Joomla! 2.5.8
cheers, LF
As soon as I put any markers on the map I get a couple of "<div>" in the middle of the javascript. See middle of code snippet below.
Made things as simple as possible with most defaults and clean article with one map and no other stuff but still the same problem.
[code]
...
title:"Grondal",
icon:phocaImagedefault5PlgPM1,
shadow:phocaImageShadowdefault5PlgPM1,
shape:phocaImageShapedefault5PlgPM1,
position: phocaPoint1PlgPM1,
map: mapPhocaMapPlgPM1
});
var infoPhocaWindow1PlgPM1 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">Grondal</script>
</div>
<div></div>'
});
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); }
}
...
[/code]
Any ideas about this?
Edit: Running Joomla! 2.5.8
cheers, LF