From 54cd400e9a3aae6b6e3e53e97f0278da7dc227e0 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 9 Jan 2009 12:27:27 +0000 Subject: [PATCH] added limited support for OGC expressions for SLD Opacity, Size and Rotation. r=tschaub,crschmidt (closes #1875) git-svn-id: http://svn.openlayers.org/trunk/openlayers@8617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/SLD/v1.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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;