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
This commit is contained in:
ahocevar
2009-01-09 12:27:27 +00:00
parent 68ad14a047
commit 54cd400e9a

View File

@@ -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;