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 the callback function has been
called once
Hope it helps,
Davide
2010/6/29 Anees <[email protected]>
> 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 of 'click' but not worked
>
> please help
>
> Thanks n regards
> Anees
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.