On Sep 21, 12:30 pm, TC_uk <[email protected]> wrote: > Through trial and error I have made a little progress... > > http://tinyurl.com/38pehl6
You're creating a marker like this: var marker = createTabbedMarker(point,name,html,category,city,date2,title,tabs,image,width,height); and the function is expecting this: function createTabbedMarker(point,name,html,category,city,date2,title,tabs,content2) so whatever you have passed as "image" gets treated as "content2" in the function. That's why the second tab contains the image details. You may be interested to know that creating a tabbed infoWindow with one tab makes it a plain infoWindow. While you do need to create it correctly, with a one-element array of a GInfoWindowTab() complete with a tab-title, it displays an ordinary non-tabbed infoWindow. As the title isn't used it could be an empty string, and certainly should not be something which is vital for understanding the data. What that means is that you can create an empty array var tabs=[]; and then push each tab on to that array as you need it: tabs.push(new GInfoWindowTab(title,text)); and then use that array: map.openInfoWindowTabs(tabs); and the API handles the case where there is only one tab. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
