function GMap() { var latlng=[ {"id":"129","title":"The House of Legends and Terrors, Ogrodzieniec","lat":"50.4542340","lng":"19.5521650","url":"","img":""}, ]; var iw=null; $(function() { var map_center=new google.maps.LatLng(52.1343430,19.5262080); var icon_act={url:('img/i_pin_act.svg'),size:new google.maps.Size(44,44),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(22,44),scaledSize:new google.maps.Size(44,44)}; var mapOptions={center:map_center,zoom:5,maxZoom:17,streetViewControl:false,panControl:false,mapTypeId:'roadmap',mapTypeControl:false,scaleControl:false,streetViewControl:false,rotateControl:false,fullscreenControl:false,zoomControl:true,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL}}; var map=new google.maps.Map(document.getElementById('map_mini'), mapOptions); var iw=new google.maps.InfoWindow({content:''}); $.each(latlng, function(i, m) { var marker=new google.maps.Marker({position: new google.maps.LatLng(m.lat, m.lng),bounds:true,id:'o'+m.id,letter:m.index,map:map,icon:icon_act,title:m.title}); }); }); }