[OpenLayers-Users] maxresolution and minresolution does not work as expected
Norbert Renner
Norbert.Renner at gmx.de
Tue Jun 18 00:59:33 PDT 2013
> And during my test, I found that it seems that the min/max resolution
> does not work as expected. For example:
>
> layera(minzoom=0,maxzoom=3) request data from `a.tile`
minZoomLevel/maxZoomLevel are probably only working with 3rd Party
Layers [1]?
What should work is one of the following combinations of Layer options
[2][3]:
a) zoomOffset + resolutions
b) resolutions + serverResolutions (resolutions as subset)
c) zoomOffset + maxResolution + numZoomLevels
e.g. with maxResolution = 156543.03390625 / Math.pow(2, zoomOffset)
Norbert
[1] http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels
[2]
http://dev.openlayers.org/releases/OpenLayers-2.13/doc/apidocs/files/OpenLayers/Layer/WMTS-js.html#OpenLayers.Layer.WMTS.zoomOffset
[3]
http://help.openstreetmap.org/questions/13666/openlayers-limit-the-number-of-zoom-levels/13713
More information about the Users
mailing list