Thanks ....
On Saturday, June 9, 2012 2:23:12 AM UTC+3, puercoespin wrote: > > Maybe: > > > (function () { > window.onload=function(){ > > var myOptions = { > center: new google.maps.LatLng(-34.397, 150.644 ), > zoom: 15, > mapTypeId: google.maps.MapTypeId.ROADMAP > }; > var map = new > google.maps.Map(document.getElementById("map_canvas"), > myOptions); > > var point[]; > var infowindow; > > {{for k,board in enumerate(boards) :}} > {{if (board.latitude) and (board.longitude) :}} > point[{{=k}}] = new > google.maps.LatLng({{=board.latitude}},{{=board.longitude}}); > var marker = new google.maps.Marker({ > position:point[{{=k}}], > map:map, > title:{{=board.name}} > }); > > (function({{=k}}, marker) { > > google.maps.event.addListener(marker,'click',function(){ > > if ( !infowindow) { > > infowindow =new google.maps.InfoWindow(); > > } > > infowindow.setContent('<div> {{=board.name}} > {{=board.description}} </div>'); > > infowindow.open(map,marker); > > } ); > > })({{=k}}, marker); > > } > > {{pass}} > > {{pass}} > > } ; > })(); > > . > >