Currently OL parses and displays KML vectors, but lacks styling support.
We're already working on this for a OWS5 project and this ticket is to track progress.
What will be implemented:
- <Style>
- <StyleUrl> internal and remote (synchronous)
What styles will be implemented:
- <LineStyle>
- <PolyStyle>
- <IconStyle> including google's internal icon set (root://incons/palette-x.png)
What else will be added:
- <Link> and <NetworkLink> for retrieving linked KML sources (synchronous)
- experimental KMZ support in proxy.cgi
Read support for all of the above is currently working in my sandbox.
What I won't be implementing at the moment:
- <StyleMap> needs new Style.js with render intent.
- <BalloonStyle> needs variable substitution from attribute info
What still needs to be done within the scope of this ticket is:
- add write support
- add tests
- add examples
- code clean-up (wouldn't mind someone having a look at it)
Our work currently includes rewriting Format.GML so Format.KML extends the GML format. I might create another ticket for that and post a separate patch.
Have a look at the following sandbox example:
http://dev.openlayers.org/sandbox/rdewit/kml/examples/kml_wmsc_ows5.html
(it's a bit bloated with other things, like a copy of the Google style popups)
Roald