Introduction
This wiki is for brainstorming the syntax for defining the structure of the output kml document. In my view this is not related to vector optimization techniques as described in CommonVectorBottlenecks since folders/networklinks to support that are automated. This is for the kml author to define a structure manually like this:
- Document
- Folder('top folder')
- Folder('category A')
- Folder('category B')->
- Folder('category C')
We'll need this syntax to support the following features:
- Can map data to specific folders based on it's source and/or attributes
- It's easy to swap out Folders for NetworkLinks, or even specify that a folder that should become a networklink if certain criteria are met (number of children, scale, complexity, etc)
- Folders/NetworkLinks can be styled, including all ListStyle's
- Folders can be referenced later in the document via selectors, so that features within it can be styled. for example:
Folder[name="category A"] Placemark {
icon: url('http://marinemap.org/icons/A.png');
}LookAt/Camera tags can be added to folders with a single call, based on the features within it. Should also be able to specify Camera positions manually if a different value is needed. Maybe even support something like "Calculate the lookat, but do so from 1 mile east looking down at a 45 degree angle". Well... someday :) Need the ability to add NetworkLinks that go out to other data sources via url. Need the ability to specify IDs. (Need the same functionality for placemarks too, so the syntax should match). Research
Need to look for examples of how to define structure like this. CSS doesn't handle this sort of thing.