Sort resolutions from largest units/pixel to lowest units/pixel. This makes

sure that you always zoom in, rather than out :)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1443 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-09-14 15:03:20 +00:00
parent c5afbacc93
commit c76dc1c211

View File

@@ -322,6 +322,7 @@ OpenLayers.Layer.prototype = {
this.resolutions.push(this.maxResolution / Math.pow(2, i));
}
}
this.resolutions = this.resolutions.sort().reverse();
},
/**