Ticket #1439: emptyString.patch
| File emptyString.patch, 0.6 kB (added by tschaub, 10 months ago) |
|---|
-
lib/OpenLayers/Style.js
old new 331 331 OpenLayers.Style.createLiteral = function(value, context, feature) { 332 332 if (typeof value == "string" && value.indexOf("${") != -1) { 333 333 value = OpenLayers.String.format(value, context, [feature]); 334 value = isNaN(value) ? value : parseFloat(value); 334 var num = parseFloat(value); 335 value = isNaN(num) ? value : num; 335 336 } 336 337 return value; 337 338 }
