reverse min/max for scale denominators
This commit is contained in:
parent
9278d6fd45
commit
6905aa3dff
@ -117,8 +117,8 @@ tree.ZoomFilter.prototype.negate = function() {
|
||||
tree.ZoomFilter.prototype.toXML = function(env) {
|
||||
var ranges = this.getRanges();
|
||||
return ranges.map(function(range) {
|
||||
return (range[0] > 0 ? '<MinScaleDenominator>' + tree.ZoomFilter.ranges[range[0]] + '</MinScaleDenominator>' : '') +
|
||||
(range[1] < 22 ? '<MaxScaleDenominator>' + tree.ZoomFilter.ranges[range[1] + 1] + '</MaxScaleDenominator>' : '');
|
||||
return (range[0] > 0 ? '<MaxScaleDenominator>' + tree.ZoomFilter.ranges[range[0]] + '</MaxScaleDenominator>' : '') +
|
||||
(range[1] < 22 ? '<MinScaleDenominator>' + tree.ZoomFilter.ranges[range[1] + 1] + '</MinScaleDenominator>' : '');
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user