Extract the kml outline attribute. r=pgiraud (closes #2412)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2010-01-27 14:05:37 +00:00
parent 822e8f5485
commit c1f9945838
2 changed files with 15 additions and 1 deletions
+6 -1
View File
@@ -340,11 +340,16 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
var r = matches[4];
style["fillColor"] = "#" + r + g + b;
}
// Check is fill is disabled
// Check if fill is disabled
var fill = this.parseProperty(styleTypeNode, "*", "fill");
if (fill == "0") {
style["fillColor"] = "none";
}
// Check if outline is disabled
var outline = this.parseProperty(styleTypeNode, "*", "outline");
if (outline == "0") {
style["strokeWidth"] = "0";
}
break;
case "iconstyle":