I successfully write a KML from Openlayers, however no styles (colors, stroke, etc.) are present in the kml file. Is it possible to generate the KML with the styles?
I found a similar question here: https://gis.stackexchange.com/questions/17031/openlayers-format-kml-write-style
Thanks in advance.
As of yet the WRITE method does not make use of the
'extractStyles':true,
property as you can see here. Only the READ method does.The only way I saw was simply to recreate them. In the example below, I've created the KML style I wanted and Injected it into openlayers created kml string.