[OpenLayers-Trac] [OpenLayers] #1494: ScaleLine takes resolution from the base layer, but units from the map

OpenLayers trac at openlayers.org
Sun Apr 6 11:07:55 EDT 2008


#1494: ScaleLine takes resolution from the base layer, but units from the map
-------------------------------+--------------------------------------------
 Reporter:  tomh               |       Owner:  tschaub
     Type:  feature            |      Status:  new    
 Priority:  minor              |   Milestone:         
Component:  Control.ScaleLine  |     Version:  2.6 RC1
 Keywords:                     |       State:         
-------------------------------+--------------------------------------------
 The new ScaleLine control takes the map resolution from the current base
 layer (by calling map.getResolution, which calls the base layer) but the
 units from the map (by reading map.units) so that if the map units are not
 the same as those for the current base layer the calculation it then does
 give a nonsensical result and the wrong scale is displayed.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1494>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list