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
This commit is contained in:
euzuro
2006-10-02 22:00:13 +00:00
parent 890b2a6ffc
commit 41f619b05e

View File

@@ -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);
});
},
/**