Openlayers export to KML and keep my map styles
问题 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. 回答1: 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