As you can see I can cut and paste bits of code to create a map, but
have little knowledge of creating java script code from scratch.
http://bartoliniville.us/sc/schools/index.html
http://bartoliniville.us/sc/schools/map_functions.js

Currently each marker on the map opens a 2-tab infowindow, School and
Extra. Most only need a single tab.
This is what the js looks like now.

        new GInfoWindowTab("School", '<table width="250px"><tr><td><h3>' +
GXml.value(locations[i].getElementsByTagName("loc")[0]) + '</h3><h3>'
+
GXml.value(locations[i].getElementsByTagName("county")[0])  + '
County</h3><h3>' +
GXml.value(locations[i].getElementsByTagName("photo")[0]) + '</
h3><h3>Match Rank ' +
GXml.value(locations[i].getElementsByTagName("rank")[0]) + '</h3><p>'
+ GXml.value(locations[i].getElementsByTagName("descript")[0]) + '</
p><br /></td></tr></table>'),

        new GInfoWindowTab("extra", '<table width="250px"><tr><td>' +
GXml.value(locations[i].getElementsByTagName("more")[0]) + '</td></
tr></table>')
                ];

The only marker with some content (for testing purposes) in the Extra
Tab is the isolated school in Beaufort County in the extereme southern
end of the state.
Was thinking of using an If statement that checks into the xml file
for content designated for the second tab labeled Extra.

        If  (GXml.value(locations[i].getElementsByTagName("more") > "a")
        {new GInfoWindowTab("extra", '<table width="250px"><tr><td>' +
GXml.value(locations[i].getElementsByTagName("more")[0]) + '</td></
tr></table>')}

        ];

I can not seem to get this to work. As for using a listener, I just do
not know how to construct one that would look for content in the more
tags of my xml.
What to do. Live with the two tabs regardless of content or lack of
content. Can someone point me to a map that use the If-statement
approach to multi-tabed infowindows or other suggestions.

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