0
當我將功能寫入KML。它不包括功能的樣式。一個similiar question被問的OpenLayers 2.我想要的OpenLayers 3.下面的代碼是用於編寫功能KML文件如何在Openlayers 3中創建KML時保留Polygon的樣式?
var drfeatures = drawLayerSource.getFeatures();
var format = new ol.format.KML();
var kml = format.writeFeatures(drfeatures, {featureProjection:'EPSG:3857'});