Apply reviewer's comments
This commit is contained in:
@@ -791,8 +791,7 @@ ol.format.WFS.GETFEATURE_SERIALIZERS_ = {
|
|||||||
*/
|
*/
|
||||||
ol.format.WFS.writeFilter = function(filter) {
|
ol.format.WFS.writeFilter = function(filter) {
|
||||||
var child = ol.xml.createElementNS(ol.format.WFS.OGCNS, 'Filter');
|
var child = ol.xml.createElementNS(ol.format.WFS.OGCNS, 'Filter');
|
||||||
var objectStack = [];
|
ol.format.WFS.writeFilterCondition_(child, filter, []);
|
||||||
ol.format.WFS.writeFilterCondition_(child, filter, objectStack);
|
|
||||||
return child;
|
return child;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1017,7 +1017,7 @@ describe('ol.format.WFS', function() {
|
|||||||
describe('when writing out a WFS Filter', function() {
|
describe('when writing out a WFS Filter', function() {
|
||||||
it('creates a filter', function() {
|
it('creates a filter', function() {
|
||||||
var text =
|
var text =
|
||||||
'<Filter>' +
|
'<Filter xmlns="http://www.opengis.net/ogc">' +
|
||||||
' <And>' +
|
' <And>' +
|
||||||
' <PropertyIsLike wildCard="*" singleChar="." escapeChar="!">' +
|
' <PropertyIsLike wildCard="*" singleChar="." escapeChar="!">' +
|
||||||
' <PropertyName>name</PropertyName>' +
|
' <PropertyName>name</PropertyName>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user