//----------------------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>
where i could put this code.............
ReplyDeletePut this code on your page where do u want to show the location of your page and you can change the longitude and latitude of your place
Delete