fix for KML element "fill" is unsupported, patch by rdewit, r=me, tests by me,

(Closes #1724)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-12-21 15:01:11 +00:00
parent e2319ffa12
commit 4a4e7b7e07
2 changed files with 15 additions and 1 deletions

View File

@@ -339,7 +339,12 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
var r = matches[4];
style["fillColor"] = "#" + r + g + b;
}
// Check is fill is disabled
var fill = this.parseProperty(styleTypeNode, "*", "fill");
if (fill == "0") {
style["fillColor"] = "none";
}
break;
case "iconstyle":
// set scale