diff --git a/lib/OpenLayers/Format/SLD/v1.js b/lib/OpenLayers/Format/SLD/v1.js index 13fb9dba81..459498af2b 100644 --- a/lib/OpenLayers/Format/SLD/v1.js +++ b/lib/OpenLayers/Format/SLD/v1.js @@ -251,24 +251,21 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.XML, { graphic.graphicName = this.getChildValue(node); }, "Opacity": function(node, obj) { - // No support for parsing of OGC expressions - var opacity = this.getChildValue(node); + var opacity = this.readOgcExpression(node); // always string, could be empty string if(opacity) { obj.opacity = opacity; } }, "Size": function(node, obj) { - // No support for parsing of OGC expressions - var size = this.getChildValue(node); + var size = this.readOgcExpression(node); // always string, could be empty string if(size) { obj.size = size; } }, "Rotation": function(node, obj) { - // No support for parsing of OGC expressions - var rotation = this.getChildValue(node); + var rotation = this.readOgcExpression(node); // always string, could be empty string if(rotation) { obj.rotation = rotation;