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:
@@ -322,6 +322,7 @@ OpenLayers.Layer.prototype = {
|
|||||||
this.resolutions.push(this.maxResolution / Math.pow(2, i));
|
this.resolutions.push(this.maxResolution / Math.pow(2, i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.resolutions = this.resolutions.sort().reverse();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user