On Mon, Aug 31, 2009 at 06:01:03PM +0200, [email protected] wrote:
> Hi all,
> I'm trying to export kml using 'write' function. The kml file is generated 
> but it doesn't contains any style information (color, image etc.) and it's 
> represented on Google Earth as a white line.
> How can I put the style information in the file?

The Google Earth KML writer does not support writing style information
at this time, to the best of my knowledge. You would need to extend
the functionality of the KML Format to handle this.

-- Chris

> 
> 
> Here is just a part of my code:
> 
> var gml3 = new OpenLayers.Format.GML.v2(gmlOptionsIn4);
> 
> var provaLayerFeatures = new OpenLayers.Layer.Vector("provaLayerFeatures", {
> isBaseLayer: false 
> });
> 
> featuresExpKml = gml3.read(unescape(g.geometry));
>                                                       
> for (var t=0; t<featuresExpKml.length;t++) {
>                                                                               
>                                 featuresExpKml[t].geometry.transform(srcProj, 
> destProj);
>                                                                               
>                                                         
> provaLayerFeatures.addFeatures(featuresExpKml);
> 
> g.geometryKml = escape(kmlout.write(provaLayerFeatures.features));
>                                                       
>                                                       
> 
> 
> 
> Thanks for your help,
> Mario
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to