Work with formats that copy filter writers

This commit is contained in:
tschaub
2012-10-25 12:31:20 -06:00
parent 81d3584e09
commit 4cf7f99de0

View File

@@ -425,8 +425,10 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
});
},
"Literal": function(value) {
var encode = this.encodeLiteral ||
OpenLayers.Format.Filter.v1.prototype.encodeLiteral;
return this.createElementNSPlus("ogc:Literal", {
value: this.encodeLiteral(value)
value: encode(value)
});
},
"LowerBoundary": function(filter) {