var map; function initialize() { var myLatLng=new google.maps.LatLng(31.892773, 34.811272); 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(31.890702, 34.7881781); markers[894]= new google.maps.Marker({ position: myLatLng, map: map, icon: image, title:"אחוזת הספא" }); markers[894].infowindow =new google.maps.InfoWindow({ content: "

אחוזת הספא

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