Fix broken units: inches was missing, and dd was in place of images.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@966 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-07-18 14:37:40 +00:00
parent f873f81545
commit 692d0f6113

View File

@@ -11,11 +11,12 @@ OpenLayers.Control.Scale = Class.create();
OpenLayers.Control.Scale.prototype = OpenLayers.Control.Scale.prototype =
Object.extend( new OpenLayers.Control(), { Object.extend( new OpenLayers.Control(), {
INCHES_PER_UNIT: { // borrowed from MapServer mapscale.c INCHES_PER_UNIT: { // borrowed from MapServer mapscale.c
dd: 1.0, inches: 1.0,
ft: 12.0, ft: 12.0,
mi: 63360.0, mi: 63360.0,
m: 39.3701, m: 39.3701,
km: 39370.1 km: 39370.1,
dd: 4374754
}, },
/** @type DOMElement */ /** @type DOMElement */