Displaying Google Map using JavaScript And Google API.

vishalneeraj-24503
Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 296
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;
key=ABQIAAAAcl" type="text/javascript"></script>

<script type="text/javascript">

function Load_Map()
{
if (GBrowserIsCompatible()) {
var point;
var map=new GMap2(document.getElementById("div_map"));
map.setCenter(new GLatLng(56.432456,71.095675), 5);
map.addControl(new GOverviewMapControl());
map.enableDoubleClickZoom();
map.enableScrollWheelZoom();
map.addControl(new GMapTypeControl());
map.addControl(new GSmallMapControl());
}
}
</script>

<body onload="Load_Map();" onunload="GUnload()" style="
background-color:Transparent">
<div id="div_map" style="width: 750px; height: 400px"></div>
</body>

Comments or Responses

Login to post response