Casting property values used as symbolizer labels to strings (allowing us to safely split them in the renderers). r=erilem (see #2193, closes #3249)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11886 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-04-07 18:45:31 +00:00
parent b650d4d89e
commit 13207d4ea1
2 changed files with 19 additions and 3 deletions

View File

@@ -191,6 +191,10 @@ OpenLayers.Style = OpenLayers.Class({
style.display = "none";
}
if (style.label && typeof style.label !== "string") {
style.label = String(style.label);
}
return style;
},