instead, add a trimWhitespace option to OpenLayers.String.numericIf as discussed with @ahocevar
This commit is contained in:
@@ -180,18 +180,18 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
},
|
||||
"Literal": function(node, obj) {
|
||||
obj.value = OpenLayers.String.numericIf(
|
||||
this.getChildValue(node).replace(this.regExes.trimSpace, ""));
|
||||
this.getChildValue(node), true);
|
||||
},
|
||||
"PropertyName": function(node, filter) {
|
||||
filter.property = this.getChildValue(node);
|
||||
},
|
||||
"LowerBoundary": function(node, filter) {
|
||||
filter.lowerBoundary = OpenLayers.String.numericIf(
|
||||
this.readers.ogc._expression.call(this, node).replace(this.regExes.trimSpace, ""));
|
||||
this.readers.ogc._expression.call(this, node), true);
|
||||
},
|
||||
"UpperBoundary": function(node, filter) {
|
||||
filter.upperBoundary = OpenLayers.String.numericIf(
|
||||
this.readers.ogc._expression.call(this, node).replace(this.regExes.trimSpace, ""));
|
||||
this.readers.ogc._expression.call(this, node), true);
|
||||
},
|
||||
"Intersects": function(node, obj) {
|
||||
this.readSpatial(node, obj, OpenLayers.Filter.Spatial.INTERSECTS);
|
||||
|
||||
Reference in New Issue
Block a user