var map; function initialize() { var myLatLng=new google.maps.LatLng(33.034294, 35.326348); 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.034294, 35.326348); markers[840]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"אחוזת אוריאן" }); markers[840].infowindow =new google.maps.InfoWindow({ content: "

אחוזת אוריאן

", maxWidth: 500, }); google.maps.event.addListener(markers[840], 'click', function() { markers[840].infowindow.open(map,markers[840]); }); myLatLng=new google.maps.LatLng(33.034294, 35.326348); markers[851]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"אחוזה בהר" }); markers[851].infowindow =new google.maps.InfoWindow({ content: "

אחוזה בהר

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