OpenLayers.Format.KML write style

المشرف العام

Administrator
طاقم الإدارة
I would like to apply a style to the KML that gets generated from the write() operation of OpenLayers.Format.KML. The current style that is on the vector layer does not get exported with this code:

function GetKMLFromFeatures = function (features) { var format = new OpenLayers.Format.KML({ 'maxDepth':10, 'extractStyles':true, 'internalProjection': map.baseLayer.projection, 'externalProjection': new OpenLayers.Projection("EPSG:4326") }); return format.write(features);}I would like to add something like this to the KML:

ff0000cc 0 1 So that i can specify the fill property. How annoying is this:



I want this:





أكثر...
 
أعلى