Control.Scale now correctly reports scales under 1:500. Includes tests. Fixes #503.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -53,8 +53,9 @@ OpenLayers.Control.Scale.prototype =
|
||||
} else if (scale >= 950000) {
|
||||
scale = Math.round(scale / 1000000) + "M";
|
||||
} else {
|
||||
scale = Math.round(scale / 100) * 100;
|
||||
}
|
||||
scale = Math.round(scale);
|
||||
}
|
||||
|
||||
this.element.innerHTML = "Scale = 1 : " + scale;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user