Fix missing units param in call to getResolutionFromScale . This should have
been fixed a while ago, but we were waiting on a test: Now that it's been reported by four different users, I'm just going to go ahead and fix it, grudgingly, rather than wait longer on a test. (Closes #958, #1117) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -647,7 +647,8 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
// determine minResolution
|
||||
if (confProps.maxScale != null) {
|
||||
confProps.minResolution =
|
||||
OpenLayers.Util.getResolutionFromScale(confProps.maxScale);
|
||||
OpenLayers.Util.getResolutionFromScale(confProps.maxScale,
|
||||
confProps.units);
|
||||
} else if ( (confProps.minResolution == "auto") &&
|
||||
(confProps.minExtent != null) ) {
|
||||
var viewSize = this.map.getSize();
|
||||
|
||||
Reference in New Issue
Block a user