Seriously? Only one marker?:))) What am i to do with only one?:)

On May 28, 10:06 am, Rossko <[email protected]> wrote:
> > How do i get the info windows to open without having to click them
> > when creating the markers?
>
> > I create the marker like so:
>
> > var marker = new GMarker(point)
> > GEvent.addLstener(marker,"click", function(){
> > marker.openInfoWindowHtml('somehtmlinhere')})
>
> Try this -
>
>  var marker = new GMarker(point)
>  GEvent.addLstener(marker,"click", function(){
>  marker.openInfoWindowHtml('somehtmlinhere')})
>  marker.openInfoWindowHtml('somehtmlinhere');
>
> But ...
>
> > gmarkers.push(marker)
>
> You've more than one marker?  There is only one infowindow, which will
> be opened on each marker in turn.
>
> cheers, Ross K.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to