On Feb 18, 7:20 pm, nowotny <[email protected]> wrote: > I don't want to do that because I think it defies the sole purpose of > bindInfoWindowHtml()... I bind so I wouldn't have to use the > listeners...
I believe that the only purpose of bindInfoWindowHtml() is to remove the need for function closure on the marker when you create many markers in a loop. > Maybe there's some other way to open the binded infowindow from the > code...? You could do something like: marks[0].openInfoWindowHtml(contents[0]); but it would require that you keep the HTML for each infoWindow in a separate array, or associate it directly in a property of the marker object. -- Marcelo - http://maps.forum.nu -- On Feb 18, 7:20 pm, nowotny <[email protected]> wrote: > On Feb 18, 7:04 pm, marcelo <[email protected]> wrote: > > > On Feb 18, 6:49 pm, nowotny <[email protected]> wrote: > > > I don't want > > > to assign listeners to all the markers... > > > I don't think that adding listeners to all markers would have a > > negative impact, as bindInfoWindowHtml() must be doing the same thing, > > only internally. > > I don't want to do that because I think it defies the sole purpose of > bindInfoWindowHtml()... I bind so I wouldn't have to use the > listeners... > > Maybe there's some other way to open the binded infowindow from the > code...? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
