On 13 Sty, 13:08, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 13, 11:22 am, jakub <[email protected]> wrote:
>
> > works and throws either:
> > marker.getInfoWindow is not a function
>
> It isn't a function. map.getInfoWindow() is though.
>
> > marker.getTabs is not a function
>
> It isn't a function. map.getInfoWindow().getTabs() is though.
>
> Don't forget map.updateInfoWindow(), which sounds it's exactly what
> you
> need.http://code.google.com/apis/maps/documentation/reference.html#GMap2.u...
>
> Andrew
Thanks Andrew for a quick reply!
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?
Real life example:
I have 30 markers with their static contents (tab#1 and tab#2) and I'd
like to add a third tab (with a dynamic contents) to every marker. The
dynamic contents would contain info about the distance between it (a
marker) and the center of the displayed map. With every map movement
contents of the third tab in every marker should be overwritten/
updated.
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
-~----------~----~----~----~------~----~------~--~---