diff --git a/lib/OpenLayers/Format/KML.js b/lib/OpenLayers/Format/KML.js index 57881a9a70..c273622706 100644 --- a/lib/OpenLayers/Format/KML.js +++ b/lib/OpenLayers/Format/KML.js @@ -541,17 +541,19 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, { feature.style = this.getStyle(feature.attributes.styleUrl); } - // Make sure that -112,36 -113,37 '; function test_Format_KML_constructor(t) { t.plan(4); @@ -117,6 +118,12 @@ t.eq(output, expected, "multilinestring correctly written"); } + function test_Format_KML_extractStyle(t) { + t.plan(1); + var f = new OpenLayers.Format.KML(); + var features = f.read(test_style); + t.ok(features[0].style == undefined, "KML Feature has no style with extractStyle false"); + }