reverse min/max for scale denominators

This commit is contained in:
Konstantin Käfer 2011-01-21 13:25:19 -05:00
parent 9278d6fd45
commit 6905aa3dff

View File

@ -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>' : '');
});
};