function initialize() { var mapOptions = { center: new google.maps.LatLng(50.428493, 5.117952), zoom: 15, //mapTypeId: google.maps.MapTypeId.SATELLITE mapTypeId: google.maps.MapTypeId.HYBRID }; var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); var marker = new Array(); var infoWindow = new Array(); marker[0] = new google.maps.Marker({ position: new google.maps.LatLng(50.427946, 5.127908), map: map, title: '1', }); infoWindow[0] = new google.maps.InfoWindow(); infoWindow[0].setOptions({maxWidth:200}); google.maps.event.addListener(marker[0], 'click', function(evt) { infoWindow[0].close(); infoWindow[0].setContent(''); infoWindow[0].open(map, marker[0]); }); marker[1] = new google.maps.Marker({ position: new google.maps.LatLng(50.427891, 5.126986), map: map, title: '2', }); infoWindow[1] = new google.maps.InfoWindow(); infoWindow[1].setOptions({maxWidth:200}); google.maps.event.addListener(marker[1], 'click', function(evt) { infoWindow[1].close(); infoWindow[1].setContent(''); infoWindow[1].open(map, marker[1]); }); marker[2] = new google.maps.Marker({ position: new google.maps.LatLng(50.429860, 5.126277), map: map, title: '3', }); infoWindow[2] = new google.maps.InfoWindow(); infoWindow[2].setOptions({maxWidth:200}); google.maps.event.addListener(marker[2], 'click', function(evt) { infoWindow[2].close(); infoWindow[2].setContent(''); infoWindow[2].open(map, marker[2]); }); marker[3] = new google.maps.Marker({ position: new google.maps.LatLng(50.429463, 5.126320), map: map, title: '4', }); infoWindow[3] = new google.maps.InfoWindow(); infoWindow[3].setOptions({maxWidth:200}); google.maps.event.addListener(marker[3], 'click', function(evt) { infoWindow[3].close(); infoWindow[3].setContent(''); infoWindow[3].open(map, marker[3]); }); marker[4] = new google.maps.Marker({ position: new google.maps.LatLng(50.430283, 5.125741), map: map, title: '5', }); infoWindow[4] = new google.maps.InfoWindow(); infoWindow[4].setOptions({maxWidth:200}); google.maps.event.addListener(marker[4], 'click', function(evt) { infoWindow[4].close(); infoWindow[4].setContent(''); infoWindow[4].open(map, marker[4]); }); marker[5] = new google.maps.Marker({ position: new google.maps.LatLng(50.429053, 5.124153), map: map, title: '6', }); infoWindow[5] = new google.maps.InfoWindow(); infoWindow[5].setOptions({maxWidth:200}); google.maps.event.addListener(marker[5], 'click', function(evt) { infoWindow[5].close(); infoWindow[5].setContent(''); infoWindow[5].open(map, marker[5]); }); marker[6] = new google.maps.Marker({ position: new google.maps.LatLng(50.428766, 5.124325), map: map, title: '7', }); infoWindow[6] = new google.maps.InfoWindow(); infoWindow[6].setOptions({maxWidth:200}); google.maps.event.addListener(marker[6], 'click', function(evt) { infoWindow[6].close(); infoWindow[6].setContent(''); infoWindow[6].open(map, marker[6]); }); marker[7] = new google.maps.Marker({ position: new google.maps.LatLng(50.428657, 5.123724), map: map, title: '8', }); infoWindow[7] = new google.maps.InfoWindow(); infoWindow[7].setOptions({maxWidth:200}); google.maps.event.addListener(marker[7], 'click', function(evt) { infoWindow[7].close(); infoWindow[7].setContent(''); infoWindow[7].open(map, marker[7]); }); marker[8] = new google.maps.Marker({ position: new google.maps.LatLng(50.428325, 5.121852), map: map, title: '9', }); infoWindow[8] = new google.maps.InfoWindow(); infoWindow[8].setOptions({maxWidth:200}); google.maps.event.addListener(marker[8], 'click', function(evt) { infoWindow[8].close(); infoWindow[8].setContent(''); infoWindow[8].open(map, marker[8]); }); marker[9] = new google.maps.Marker({ position: new google.maps.LatLng(50.429180, 5.121495), map: map, title: '10', }); infoWindow[9] = new google.maps.InfoWindow(); infoWindow[9].setOptions({maxWidth:200}); google.maps.event.addListener(marker[9], 'click', function(evt) { infoWindow[9].close(); infoWindow[9].setContent(''); infoWindow[9].open(map, marker[9]); }); marker[10] = new google.maps.Marker({ position: new google.maps.LatLng(50.428107, 5.121393), map: map, title: '11', }); infoWindow[10] = new google.maps.InfoWindow(); infoWindow[10].setOptions({maxWidth:200}); google.maps.event.addListener(marker[10], 'click', function(evt) { infoWindow[10].close(); infoWindow[10].setContent(''); infoWindow[10].open(map, marker[10]); }); marker[11] = new google.maps.Marker({ position: new google.maps.LatLng(50.428156, 5.120964), map: map, title: '12', }); infoWindow[11] = new google.maps.InfoWindow(); infoWindow[11].setOptions({maxWidth:200}); google.maps.event.addListener(marker[11], 'click', function(evt) { infoWindow[11].close(); infoWindow[11].setContent(''); infoWindow[11].open(map, marker[11]); }); marker[12] = new google.maps.Marker({ position: new google.maps.LatLng(50.425311, 5.112081), map: map, title: '13', }); infoWindow[12] = new google.maps.InfoWindow(); infoWindow[12].setOptions({maxWidth:200}); google.maps.event.addListener(marker[12], 'click', function(evt) { infoWindow[12].close(); infoWindow[12].setContent(''); infoWindow[12].open(map, marker[12]); }); marker[13] = new google.maps.Marker({ position: new google.maps.LatLng(50.425012, 5.111450), map: map, title: '14', }); infoWindow[13] = new google.maps.InfoWindow(); infoWindow[13].setOptions({maxWidth:200}); google.maps.event.addListener(marker[13], 'click', function(evt) { infoWindow[13].close(); infoWindow[13].setContent(''); infoWindow[13].open(map, marker[13]); }); marker[14] = new google.maps.Marker({ position: new google.maps.LatLng(50.424236, 5.110815), map: map, title: '15', }); infoWindow[14] = new google.maps.InfoWindow(); infoWindow[14].setOptions({maxWidth:200}); google.maps.event.addListener(marker[14], 'click', function(evt) { infoWindow[14].close(); infoWindow[14].setContent(''); infoWindow[14].open(map, marker[14]); }); marker[15] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '16', }); infoWindow[15] = new google.maps.InfoWindow(); infoWindow[15].setOptions({maxWidth:200}); google.maps.event.addListener(marker[15], 'click', function(evt) { infoWindow[15].close(); infoWindow[15].setContent(''); infoWindow[15].open(map, marker[15]); }); marker[16] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '17', }); infoWindow[16] = new google.maps.InfoWindow(); infoWindow[16].setOptions({maxWidth:200}); google.maps.event.addListener(marker[16], 'click', function(evt) { infoWindow[16].close(); infoWindow[16].setContent(''); infoWindow[16].open(map, marker[16]); }); marker[17] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '18', }); infoWindow[17] = new google.maps.InfoWindow(); infoWindow[17].setOptions({maxWidth:200}); google.maps.event.addListener(marker[17], 'click', function(evt) { infoWindow[17].close(); infoWindow[17].setContent(''); infoWindow[17].open(map, marker[17]); }); marker[18] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '19', }); infoWindow[18] = new google.maps.InfoWindow(); infoWindow[18].setOptions({maxWidth:200}); google.maps.event.addListener(marker[18], 'click', function(evt) { infoWindow[18].close(); infoWindow[18].setContent(''); infoWindow[18].open(map, marker[18]); }); marker[19] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '20', }); infoWindow[19] = new google.maps.InfoWindow(); infoWindow[19].setOptions({maxWidth:200}); google.maps.event.addListener(marker[19], 'click', function(evt) { infoWindow[19].close(); infoWindow[19].setContent(''); infoWindow[19].open(map, marker[19]); }); marker[20] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '21', }); infoWindow[20] = new google.maps.InfoWindow(); infoWindow[20].setOptions({maxWidth:200}); google.maps.event.addListener(marker[20], 'click', function(evt) { infoWindow[20].close(); infoWindow[20].setContent(''); infoWindow[20].open(map, marker[20]); }); marker[21] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '22', }); infoWindow[21] = new google.maps.InfoWindow(); infoWindow[21].setOptions({maxWidth:200}); google.maps.event.addListener(marker[21], 'click', function(evt) { infoWindow[21].close(); infoWindow[21].setContent(''); infoWindow[21].open(map, marker[21]); }); marker[22] = new google.maps.Marker({ position: new google.maps.LatLng(0.000000, 0.000000), map: map, title: '25', }); infoWindow[22] = new google.maps.InfoWindow(); infoWindow[22].setOptions({maxWidth:200}); google.maps.event.addListener(marker[22], 'click', function(evt) { infoWindow[22].close(); infoWindow[22].setContent(''); infoWindow[22].open(map, marker[22]); }); } google.maps.event.addDomListener(window, 'load', initialize);