openlayers/openlayers — pull request #490 by probins (2012-05-27 08:59:56+00:00)
Title: KML write: Placemark elements shouldn't be extendedData

A follow-up to #247. KML read stores all Placemark elements as feature attributes. At the moment, write() is then serialising these as extendedData, whereas they should be output as Placemark elements. This fix corrects this for the most common of these: open, visibility, Snippet. There are other elements (though I've never seen these in the wild), which could be added - though in that case it would probably be better to set up an array of all the elements plus a for loop to create a node for each one present.

Can easily be tested with examples/vector-formats.html (very useful for testing format read/write :-) )

Tests continue to pass.