1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
<!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>
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style>
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAANV8M8s128eP55wUqCqvWyBQVMYhLIeywhJ0puM4BK8Tp-d4myhTvfxey30oeLPqs-t72AGpR7hBa9w" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function OnLoad()
{
if (GBrowserIsCompatible()) {
var pntDerbyTech = new GPoint(-90.44445276260376, 41.51460278611576);
// Display Map
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(pntDerbyTech, 4);
GEvent.addListener(map, 'click', function(overlay, point) {
if (overlay) {
map.removeOverlay(overlay);
} else if (point) {
marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml("GPS: "+point);
}
});
}
// End Compatible
}
//]]></script>
</head>
<body onload="OnLoad()">
<center><div id="map" style="width: 950px; height: 500px"></div>
</body>
</html>
|