add a map getUnits method, r=ahocevar (Closes 1591)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7374 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2008-06-18 08:57:02 +00:00
parent 5f42b862ba
commit 4340867918
6 changed files with 37 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ OpenLayers.Control.ScaleLine = OpenLayers.Class(OpenLayers.Control, {
return;
}
var curMapUnits = this.map.units;
var curMapUnits = this.map.getUnits();
var inches = OpenLayers.INCHES_PER_UNIT;
// convert maxWidth to map units