[OpenLayers-Dev] Re: Limit the Zoom

dr rykovd at gmail.com
Mon Feb 7 03:59:23 EST 2011


You need use "resolutions" property while configuring your map. For example:

var resols =  [8000, 7766.99029, 7540.76727, 7321.13327, 7107.89638,
6900.87027,...]
map = new OpenLayers.Map({
                div: "map-id",
                maxExtent:  new
OpenLayers.Bounds(13909282.60,4024860.68,21806397.50,10422101.44),
                units: 'm',
                resolutions: resols,
                ...      
http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limit-the-Zoom-tp5999538p5999634.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list