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:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user