Java Script

Avinash singh | 2:34 PM

//----------------------Google Map Integration in Your Pages---------------//

<!DOCTYPE html>

<html><head>

<script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&sensor=false">

</script>

<script>

var myCenter=new google.maps.LatLng(28.577921,77.3180601); // Here just change the latitude and longitude of the area



function initialize()

{

var mapProp = {

  center:myCenter,

  zoom:5,                                                              // Edit this portion for the zoom view

  mapTypeId:google.maps.MapTypeId.ROADMAP

  };



var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);



var marker=new google.maps.Marker({

  position:myCenter,

  });



marker.setMap(map);

}



google.maps.event.addDomListener(window, 'load', initialize);

</script>

</head>



<body>

<div id="googleMap" style="width:500px;height:380px;"></div>

</body>

</html>

Avinash Kumar Singh © 2013. All Rights Reserved | Powered by-Blogger