On 13 Sty, 14:44, Mike Williams <[email protected]> wrote:
> Wasn't it jakub who wrote:
>
> >If I have... lets say 30 markers on the map and the getInfoWindow() is
> >the map-object's and not marker-object's method, which marker's tabs
> >array will the getInfoWindow().getTabs() method return?
>
> The last one that was opened.

That's not cool, not to say that its sucks :/

>
> I recommend obtaining Function Closure on your "tabs" variable, and
> using GEvent.addListener(marker,"click" instead of
> marker.bindInfoWindowTabsHtml(). That way you can add some extra code to
> create a new array from "tabs" and add in the third tab at the time of
> the click. marker.bindInfoWindowTabsHtml() is only really useful if the
> html that you want to bind to is static.
>
> I don't recommend updating the "tabs" variable itself. In some
> circumstances MSIE6 gets rather upset if you increase the memory
> requirement of a variable that's being accessed via Function Closure.
>

Thanks for the tips.

Jakub
--~--~---------~--~----~------------~-------~--~----~
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