Hi All, This is my google map api Please llok into that and leat me aknow were is the mistake I am unable to get the root path. Please replay me as early as possible. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Control Initialization</title> <script src="http://maps.google.com/maps? file=api&v=2.x&key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1- m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA" type="text/javascript"></ script> <script type="text/javascript"> //<![CDATA[ function initialize() { if (GBrowserIsCompatible()) { // define the crosshair tile layer and its required functions var crossLayer = new GTileLayer(new GCopyrightCollection(""), 0, 15); crossLayer.getTileUrl = function(tile, zoom) { return "./include/tile_crosshairs.png"; } crossLayer.isPng = function() {return true;}
// Create a new map type incorporating the tile layer var layerTerCross = [ G_PHYSICAL_MAP.getTileLayers()[0], crossLayer ]; var mtTerCross = new GMapType(layerTerCross, G_PHYSICAL_MAP.getProjection(), "Ter+"); var map = new GMap2(document.getElementById("map_canvas"), { size: new GSize(679,596) } ); var directionsPanel = document.getElementById("route"); var directions = new GDirections(map, directionsPanel); map.addMapType(G_PHYSICAL_MAP); map.addMapType(mtTerCross);var blueIcon = new GIcon(G_DEFAULT_ICON); blueIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/ markers/red/marker1.png"; markerOptions = { icon:blueIcon }; var hyd1= new GMarker( new GLatLng (17.4429638888889,78.4990694444444),markerOptions); GEvent.addListener (hyd1, "mouseover" , function() { hyd1 .openInfoWindowHtml ("01/12/2009 14:40:51"); }); map.addOverlay (hyd1);var points = new Array(new GLatLng (17.4429638888889,78.4990694444444));var blueIcon = new GIcon (G_DEFAULT_ICON); blueIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/ markers/red/marker2.png"; markerOptions = { icon:blueIcon }; var hyd2= new GMarker( new GLatLng (17.4431888888889,78.4918888888889),markerOptions); GEvent.addListener (hyd2, "mouseover" , function() { hyd2 .openInfoWindowHtml ("01/12/2009 14:41:52"); }); map.addOverlay (hyd2);var points = new Array(new GLatLng (17.4431888888889,78.4918888888889));var point1 = new Array(new GLatLng (17.4431888888889,78.4918888888889),new GLatLng (17.4429638888889,78.4990694444444)); var line = new GPolyline(point1,"#00400040",2); directions.load(" form:17.4431888888889,78.4918888888889to: 17.4429638888889,78.4990694444444");var blueIcon = new GIcon (G_DEFAULT_ICON); blueIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/ markers/red/marker3.png"; markerOptions = { icon:blueIcon }; var hyd3= new GMarker( new GLatLng (17.4430527777778,78.4875138888889),markerOptions); GEvent.addListener (hyd3, "mouseover" , function() { hyd3 .openInfoWindowHtml ("01/12/2009 14:42:52"); }); map.addOverlay (hyd3);var points = new Array(new GLatLng (17.4430527777778,78.4875138888889));var point1 = new Array(new GLatLng (17.4430527777778,78.4875138888889),new GLatLng (17.4431888888889,78.4918888888889)); var line = new GPolyline(point1,"#00400040",2); directions.load(" form:17.4430527777778,78.4875138888889to: 17.4431888888889,78.4918888888889");map.setCenter(new GLatLng (17.4430527777778,78.4875138888889), 17); directions.load(" form:17.4430527777778,78.4875138888889to: 17.4430527777778,78.4875138888889"); map.addControl(new GLargeMapControl()) var mapControl = new GHierarchicalMapTypeControl(); // Set up map type menu relationships mapControl.clearRelationships(); mapControl.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP, "Labels", false); mapControl.addRelationship(G_PHYSICAL_MAP, mtTerCross, "Crosshairs"); // Add control after you've specified the relationships map.addControl(mapControl); } } //]]> </script> </head> <body scroll = no onload="initialize()" onunload="GUnload()"> <div id="map_canvas" style="width: 100%; height: 100%"></div> <div id="route" style="FLOAT:right; width: 25%; height: 480px"></div> </body> </html> Regards, VEnkat -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.