Hi,

I've created a matker with a tabbed info window:

var marker = new GMarker(point);
var tabs = new Array;
tabs[0] = new GInfoWindowTab('Label 1','Contents 1');
tabs[1] = new GInfoWindowTab('Label 2','Contents 2');
marker.bindInfoWindowTabsHtml(tabs);

Later in code I'd like to add a third tab.

Neither:

var oldtabs = marker.getTabs();
oldtabs[2] = new GInfoWindowTab("Label 3",'Contents3');
marker.bindInfoWindowTabsHtml(oldtabs);

nor:

var oldtabs = marker.getInfoWindow().getTabs();
oldtabs[2] = new GInfoWindowTab("Label 3",'Contents3');
marker.bindInfoWindowTabsHtml(oldtabs);

works and throws either:
marker.getInfoWindow is not a function
or:
marker.getTabs is not a function
error.

How can I add new tabs?

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