From c76dc1c21102ff7f2554e7e74c4c6b765f3ed0e3 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 14 Sep 2006 15:03:20 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Layer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index 261dfe50d6..466a7748fb 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -322,6 +322,7 @@ OpenLayers.Layer.prototype = { this.resolutions.push(this.maxResolution / Math.pow(2, i)); } } + this.resolutions = this.resolutions.sort().reverse(); }, /**