<script src="http://maps.google.com/maps/api/js?key=YourKey&callbacksensor=false"></script> Call Where you want to show Map <div id="map" style="width: 500px; height: 400px;"></div>
<script>
var locations = [
[
“Your adress1”,
28.541868,
77.1161973,
1,
],
[
“Your adress2”,
28.634747,
77.2187213,
2,
],
[
“Your adress3”,
28.567317,
77.2390653,
3,
],
]
var map = new google.maps.Map(document.getElementById(‘map’), {
zoom: 8,
// center: new google.maps.LatLng(-33.92, 151.25),
center: new google.maps.LatLng(28.541868, 77.1161973),
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var infowindow = new google.maps.InfoWindow();
var marker, i;
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
map: map
});
google.maps.event.addListener(marker, ‘click’, (function(marker, i) {
return function() {
infowindow.setContent(locations[i][0], locations[i][6]);
infowindow.open(map, marker);
}
})(marker, i));
}
</script>