[OpenLayers-Trac] [OpenLayers] #958: MaxScale problem in maps with units other than degrees

OpenLayers trac at openlayers.org
Wed Sep 5 08:34:12 EDT 2007


#958: MaxScale problem in maps with units other than degrees
------------------------+---------------------------------------------------
 Reporter:  openlayers  |       Owner:  euzuro
     Type:  bug         |      Status:  new   
 Priority:  major       |   Milestone:        
Component:  Layer       |     Version:  2.4   
 Keywords:              |  
------------------------+---------------------------------------------------
 I have a map with units = m. I have some problems with the maxScale
 parameter, which is not functioning (i'm able to zoomin beyond the fixed
 limit). After some debugging I found that in initResolutions there is the
 following line
 confProps.minResolution =
 OpenLayers.Util.getResolutionFromScale(confProps.maxScale);
 instead of
 confProps.minResolution =
 OpenLayers.Util.getResolutionFromScale(confProps.maxScale,
                                                       confProps.units);

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


More information about the Trac mailing list