[OpenLayers-Trac] [OpenLayers] #3191: maxResolution not correctly set when initializing map from WMC document

OpenLayers trac-20090302 at openlayers.org
Fri Mar 25 14:21:41 EDT 2011


#3191: maxResolution not correctly set when initializing map from WMC document
-------------------------+--------------------------------------------------
 Reporter:  trondmm      |       Owner:  tschaub     
     Type:  bug          |      Status:  new         
 Priority:  minor        |   Milestone:  2.11 Release
Component:  Format       |     Version:  SVN         
 Keywords:  wmc context  |       State:  Review      
-------------------------+--------------------------------------------------
 SVN rev. 11727

 When a map object is initialized from a WMC document, maxResolution is not
 set, leaving it at the default 1.40625. If the projection units is not
 degrees, this will cause openlayers to zoom too far in, and it is
 impossible to zoom far enough out to see anything useful.
 The attached patch fixes this.

 Examples:
 without patch:
 http://wms.met.no/wmc/loadwmc_210.html

 with patch
 http://wms.met.no/wmc/loadwmc_dev.html

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


More information about the Trac mailing list