0

i've embeded google maps on my site with a marker setup were i wanted, but i cannot use "Get directions" to open in the same div that i use. Is it possible to do that, or my only options are _blank, _self etc.

<script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=ABQIAAAAsoAP0MDLt21HBpoCAZ0DLBQD344IlC21WoKHBucdD45AbVnqaxQoNHNKFtJHrVaqBr2Dwfh1G1O2-g" type="text/javascript"></script>

<script type="text/javascript">
function initialize() {
	if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(45.595513, 25.554714);
        map.setCenter(point, 6);
        map.setUIToDefault();
		map.setMapType(G_NORMAL_MAP);
		var marker = new GMarker(point);
 		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml('<h4>Silver Mountain</h4><img src="images/googlemaps/silvermountain_small.jpg" alt="" width="90" height="72" border="0"><br><a id="map_canvas" href="http://maps.google.com/maps?saddr=&daddr=' + point.toUrlValue() + '" target ="_self">Get Directions<\/a>');});

	}
}
	
window.onload = initialize;
window.onunload = GUnload;

</script>
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by JayAugust
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.