Javascript to show a google map
==========================
<html>
<body>
<script src="http://maps.google.com/maps?file=api&v=1&key=yourKey"type="text/javascript"></script>
<div id="mapDiv" style="width: 700px; height: 600px"></div>
<script type="text/javascript">
//<![CDATA[ var myMap = new GMap(document.getElementById("mapDiv"));
myMap.addControl(new GSmallMapControl());
myMap.addControl(new GMapTypeControl());
myMap.centerAndZoom(new GPoint(-112.1419, 40.4419), 4);
//]]>
</script>
</body>
</html>
No comments:
Post a Comment