From 41f619b05e11015f58c78142d59c8b6ff448e7de Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 2 Oct 2006 22:00:13 +0000 Subject: [PATCH] fix for r1478, #190 - need to specify a sort method. thanks to http://www.javascriptkit.com/javatutors/arraysort3.shtml git-svn-id: http://svn.openlayers.org/trunk/openlayers@1527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 4 ++++ 1 file changed, 4 insertions(+) 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); + }); }, /**