make filterMap_ static as proposed by @tschaub
This commit is contained in:
@@ -379,7 +379,15 @@ ol.parser.ogc.Filter_v1 = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.filterMap_ = {
|
goog.base(this);
|
||||||
|
};
|
||||||
|
goog.inherits(ol.parser.ogc.Filter_v1, ol.parser.XML);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
ol.parser.ogc.Filter_v1.filterMap_ = {
|
||||||
'&&': 'And',
|
'&&': 'And',
|
||||||
'||': 'Or',
|
'||': 'Or',
|
||||||
'!': 'Not',
|
'!': 'Not',
|
||||||
@@ -401,9 +409,6 @@ ol.parser.ogc.Filter_v1 = function() {
|
|||||||
'ieq': 'PropertyIsEqualTo',
|
'ieq': 'PropertyIsEqualTo',
|
||||||
'ineq': 'PropertyIsNotEqualTo'
|
'ineq': 'PropertyIsNotEqualTo'
|
||||||
};
|
};
|
||||||
goog.base(this);
|
|
||||||
};
|
|
||||||
goog.inherits(ol.parser.ogc.Filter_v1, ol.parser.XML);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -443,7 +448,7 @@ ol.parser.ogc.Filter_v1.prototype.getFilterType_ = function(filter) {
|
|||||||
} else if (filter instanceof ol.expr.Not) {
|
} else if (filter instanceof ol.expr.Not) {
|
||||||
type = '!';
|
type = '!';
|
||||||
}
|
}
|
||||||
var filterType = this.filterMap_[type];
|
var filterType = ol.parser.ogc.Filter_v1.filterMap_[type];
|
||||||
if (!filterType) {
|
if (!filterType) {
|
||||||
throw new Error('Filter writing not supported for rule type: ' + type);
|
throw new Error('Filter writing not supported for rule type: ' + type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user