From 253a8bbaf7d0ab9d5cd1f8ba3c2cef5c3eb6471a Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 16 Jun 2009 14:17:00 +0000 Subject: [PATCH] added extractStyles:true for KML input git-svn-id: http://svn.openlayers.org/trunk/openlayers@9480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/vector-formats.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/vector-formats.html b/examples/vector-formats.html index 714f12d939..c38a3ae445 100644 --- a/examples/vector-formats.html +++ b/examples/vector-formats.html @@ -69,6 +69,8 @@ OpenLayers.Util.extend({}, gmlOptions), out_options ); + var kmlOptionsIn = OpenLayers.Util.extend( + {extractStyles: true}, in_options) formats = { 'in': { wkt: new OpenLayers.Format.WKT(in_options), @@ -76,7 +78,7 @@ georss: new OpenLayers.Format.GeoRSS(in_options), gml2: new OpenLayers.Format.GML.v2(gmlOptionsIn), gml3: new OpenLayers.Format.GML.v3(gmlOptionsIn), - kml: new OpenLayers.Format.KML(in_options) + kml: new OpenLayers.Format.KML(kmlOptionsIn) }, 'out': { wkt: new OpenLayers.Format.WKT(out_options),