update map's getScale() to use getScaleFromResolution()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -787,8 +787,7 @@ OpenLayers.Map.prototype = {
|
|||||||
if (this.baseLayer != null) {
|
if (this.baseLayer != null) {
|
||||||
var res = this.getResolution();
|
var res = this.getResolution();
|
||||||
var units = this.baseLayer.units;
|
var units = this.baseLayer.units;
|
||||||
scale = res * OpenLayers.INCHES_PER_UNIT[units] *
|
scale = OpenLayers.Util.getScaleFromResolution(res, units);
|
||||||
OpenLayers.DOTS_PER_INCH;
|
|
||||||
}
|
}
|
||||||
return scale;
|
return scale;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user