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:
@@ -251,24 +251,21 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
graphic.graphicName = this.getChildValue(node);
|
graphic.graphicName = this.getChildValue(node);
|
||||||
},
|
},
|
||||||
"Opacity": function(node, obj) {
|
"Opacity": function(node, obj) {
|
||||||
// No support for parsing of OGC expressions
|
var opacity = this.readOgcExpression(node);
|
||||||
var opacity = this.getChildValue(node);
|
|
||||||
// always string, could be empty string
|
// always string, could be empty string
|
||||||
if(opacity) {
|
if(opacity) {
|
||||||
obj.opacity = opacity;
|
obj.opacity = opacity;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Size": function(node, obj) {
|
"Size": function(node, obj) {
|
||||||
// No support for parsing of OGC expressions
|
var size = this.readOgcExpression(node);
|
||||||
var size = this.getChildValue(node);
|
|
||||||
// always string, could be empty string
|
// always string, could be empty string
|
||||||
if(size) {
|
if(size) {
|
||||||
obj.size = size;
|
obj.size = size;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Rotation": function(node, obj) {
|
"Rotation": function(node, obj) {
|
||||||
// No support for parsing of OGC expressions
|
var rotation = this.readOgcExpression(node);
|
||||||
var rotation = this.getChildValue(node);
|
|
||||||
// always string, could be empty string
|
// always string, could be empty string
|
||||||
if(rotation) {
|
if(rotation) {
|
||||||
obj.rotation = rotation;
|
obj.rotation = rotation;
|
||||||
|
|||||||
Reference in New Issue
Block a user