googlehtml2.html
googlehtml2.html — 1.7 KB
File contents
<!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>User Group KMZ Test</title> <!-- Put in your key here--> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAbLBEnjiTXZ3FUVmokSKdbBQhpfTiiCcriy6U6xTolVuZo4kfeRR4VeC-gPsW4DmMHmodJBjqbl3mLA" type="text/javascript"></script> </head> <body onunload="GUnload()"> <!-- The container for the map, including how big to make the map--> <div id="map" style="width: 670px; height: 450px"></div> <noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b> However, it seems JavaScript is either disabled or not supported by your browser. To view Google Maps, enable JavaScript by changing your browser options, and then try again. </noscript> <script type="text/javascript"> if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(35.097, -106.6), 11); // ==== Create a KML Overlay ==== var mapoverlay = new GGeoXml("http://www.cabq.gov/storm-drainage-design.kmz"); map.addOverlay(mapoverlay); } // display a warning if the browser was not compatible else { alert("Sorry, the Google Maps API is not compatible with this browser"); } </script> </body> </html>