I'm trying to build a map with a series of checkboxes in the sidebar, to display groups of markers. My KML file is structured as below (it's come from Google Earth):
<document>
<folder>
<placemark>
<xx />
<xxx />
</placemark>
</folder>
</document>
I'm able to load the KML and apply it to the map as a layer, showing all markers and polygons etc at once. What I'm not sure of, and can't find documented anywhere, is how to manipulate particular nodes in KML - say by way of a checkbox to display all placemarks in a particular folder, or to show all polygons, but no markers or vice versa.
Due to the number of placemarkers, I'd rather use Google Earth to maintain the KML file, not add them individually via javascript/API. Would I be better off using Fusion Tables?
To further complicate things, in some instances I'd like to display all placemarks from one folder and one from another - I'm thinking I'll use ExtendedData to achieve that, or explicitly add the marker by name. Get to that later...