OK, I guess I'm going to have to re-work my script to allow the tabbed infowindow.
Can anyone give me an example of how I can do this to get me started? Here is my script: http://maps.racinnation.com/includes/map_script.php On Jun 9, 9:08 am, "[email protected]" <[email protected]> wrote: > On Jun 8, 9:32 pm, racinnation <[email protected]> wrote: > > > So the net result is there is no function to do what I want to do with > > a string of HTML code? > > Not as part of the API. There is nothing to keep you from writing > one. You just can't arbitrarily redefine API functions. > > In your createMarker function, combine the arguments into a single > string containing the content you want for that tab, then pass that > string in to the the GInfoWindowTab(label:String, content:Node or > String) function. > > http://code.google.com/apis/maps/documentation/reference.html#GInfoWi... > > You will need to rearrange/re-write some of your other code as well. > > -- Larry > > > > > > > On Jun 8, 5:27 pm, Andrew Leach <[email protected]> wrote: > > > > On Jun 8, 3:12 pm, racinnation <[email protected]> wrote: > > > > > Oops... Operator error. You should see the tabbed info now in the > > > > source. > > > > The > > > documentationhttp://code.google.com/apis/maps/documentation/reference.html#GInfoWi... > > > says GInfoWindowTab takes a string as a label (the tab "name") and > > > either a DOM node (for openInfoWindowTabs) or a string (for > > > openInfoWindowTabsHtml) containing the content. > > > > So you need something like > > > new GInfoWindowTab(name,html) > > > > You can't do > > > new GInfoWindowTab(name,html,street,city,state,zip,url) > > > unless "html" is a DOM node: yours isn't, it's a string of HTML code. > > > Even then, only the first two parameters are used. > > > > So: each tab needs a label and a string containing the content. And > > > you need to use marker.openInfoWindowTabsHtml(). > > > > Does that help? > > > > Andrew- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
