diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index 4eed13d2d3..543112ffe9 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -322,6 +322,10 @@ OpenLayers.Layer.prototype = { this.resolutions.push(this.maxResolution / Math.pow(2, i)); } } + + this.resolutions.sort( function ascend(a,b) { + return(b-a); + }); }, /**