Re: [Google Maps API v3] openInfoWindowHtml on onload

2010-06-29 Thread Davide Cremonesi
Here is a working example: http://neogismap.appspot.com/debugAndDemo/clickOnLoad/index.html Bye, Davide 2010/6/29 Anees > Hello > have added a Listener to show a info for the Map marker as > > GEvent.addListener(marker, 'click', function() { >marker.openInfoWindowHtml(html); >

Re: [Google Maps API v3] openInfoWindowHtml on onload

2010-06-29 Thread Davide Cremonesi
I did some tests and seems that the event cannot be triggered before the map is loaded, therefore I trigger the event only on the map idle event, google.maps.event.addListener(map, 'idle', function(){ google.maps.event.trigger(marker,'click'); }); You should call also the removeListener once

Re: [Google Maps API v3] openInfoWindowHtml on onload

2010-06-29 Thread Davide Cremonesi
Try to trigger the event programmatically: google.maps.event.trigger(marker,'click'); 2010/6/29 Anees > Hello > have added a Listener to show a info for the Map marker as > > GEvent.addListener(marker, 'click', function() { >marker.openInfoWindowHtml(html); >}); > > Now,

[Google Maps API v3] openInfoWindowHtml on onload

2010-06-29 Thread Anees
Hello have added a Listener to show a info for the Map marker as GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html); }); Now, How can show that html without clicking on the marker I mean immediately after the Map loads tried 'load' instead o