var map; function initialize() { var myLatLng=new google.maps.LatLng(33.089381, 35.470338); var mapOptions = { zoom: 14, center: myLatLng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var image = 'https://www.zimmerland.co.il/webimages/waze_icon2.png'; var markers=new Array(); myLatLng=new google.maps.LatLng(33.089381, 35.470338); markers[1059]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"חלום בלבן" }); markers[1059].infowindow =new google.maps.InfoWindow({ content: "

חלום בלבן

", maxWidth: 500, }); google.maps.event.addListener(markers[1059], 'click', function() { markers[1059].infowindow.open(map,markers[1059]); }); myLatLng=new google.maps.LatLng(33.089381, 35.470338); markers[1211]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"וילה סי" }); markers[1211].infowindow =new google.maps.InfoWindow({ content: "

וילה סי

", maxWidth: 500, }); google.maps.event.addListener(markers[1211], 'click', function() { markers[1211].infowindow.open(map,markers[1211]); }); } google.maps.event.addDomListener(window, 'load', initialize);