Tuesday 18 July 2006 5:01:32 am
Hey, I'm trying to implement google maps into our site, but ezPublish is cutting off the code that I'm pulling from an include. It gets this far:
<script src="http://maps.google.com/maps?file=api&v=2&key=zxa"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load()
But gets cut off here, and should continue with:
{
if (GBrowserIsCompatible()) {
function createMarker(point,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(-28.134414, 153.490248), 16);
map.addControl(new GSmallZoomControl());
map.addControl(new GMapTypeControl());
var point = new GLatLng(-28.134414, 153.490248);
var marker = createMarker(point,'Waves')
map.addOverlay(marker);
}
}
//]]>
</script>
Any idea why its getting cut off? Cheers, Rick.
|