diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index bf202268f9..b748d84118 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -1184,9 +1184,9 @@ OpenLayers.Util.getResolutionFromScale = function (scale, units) { units = "degrees"; } - normScale = OpenLayers.Util.normalizeScale(scale); + var normScale = OpenLayers.Util.normalizeScale(scale); var resolution = 1 / (normScale * OpenLayers.INCHES_PER_UNIT[units] - * OpenLayers.DOTS_PER_INCH); + * OpenLayers.DOTS_PER_INCH); return resolution; };