we were missing a break statement in the KML parseStyle method, tests are modified accordingly, r=fredj (Closes #2448)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2010-02-03 09:35:45 +00:00
parent 6223d7fd82
commit 2100d63846
2 changed files with 5 additions and 4 deletions

View File

@@ -329,6 +329,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
if (width) {
style["strokeWidth"] = width;
}
break;
case "polystyle":
var color = this.parseProperty(styleTypeNode, "*", "color");
@@ -358,6 +359,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
}
break;
case "iconstyle":
// set scale
var scale = parseFloat(this.parseProperty(styleTypeNode,