var map; function initialize() { var myLatLng=new google.maps.LatLng(32.9971381, 35.4206581); var mapOptions = { zoom: 10, 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(32.4728028, 34.9742001); markers[1197]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"רויאל פאלאס" }); markers[1197].infowindow =new google.maps.InfoWindow({ content: "

רויאל פאלאס

", maxWidth: 500, }); google.maps.event.addListener(markers[1197], 'click', function() { markers[1197].infowindow.open(map,markers[1197]); }); myLatLng=new google.maps.LatLng(31.868055, 34.88595); markers[1227]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"איתן פאלאס" }); markers[1227].infowindow =new google.maps.InfoWindow({ content: "

איתן פאלאס

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