Hi, your question was already answered yesterday, can you please stop reposting this question? TIA.
http://openlayers.org/pipermail/users/2009-August/013525.html Best regards, Bart > 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? > > > > 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 > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users