map

http://maps.googleapis.com/maps/api/js

function loadMap(){
var mapProp = {
center:new google.maps.LatLng(17.433053, 78.412172),
zoom:6,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById(“googleMap”),mapProp);
var myrectangle=new google.maps.Rectangle({
strokeColor:”#0000FF”,
strokeOpacity:0.6,
strokeWeight:2,
fillColor:”#0000FF”,
fillOpacity:0.4,
map:map,
bounds:new google.maps.LatLngBounds(
new google.maps.LatLng(17.342761, 78.552432),
new google.maps.LatLng(16.396553, 80.727725))
});
}

Advertisements