I'd recommend ditching KML if possible. Then you end up with something just a little bit more complicated than this:

http://econym.org.uk/gmap/categories.htm

The big difference is that you can't just do hide(category) and show(category) based on an individual checkbox. Whenever a checkbox changes you have to scan through all the markers and test each one against both sets of checkboxes.


If you can't ditch KML then you'd have to use a third party KML parser, like GeoXml (because GGeoXml doesn't expose the markers). Glue all your data together in one big KML file. Then you somehow have to encode the category information into an existing KML field that GeoXml gives you access to, that might be a bit awkward. Write your own {createmarker} function to extract this information from what GeoXml gives you and attach it to the marker. That gets you back to about the same sort of place that you'd be at if you ditched KML.

--
Mike Williams
Back from exile!
-- 
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