[OpenLayers-Users] maxresolution and minresolution does not work as expected

maven apache apachemaven0 at gmail.com
Tue Jun 18 01:41:37 PDT 2013


In fact, I use the max/minresolution:

* maxResolution : tresolution[l.minzoom],*
* minResolution : tresolution[l.maxzoom],*


2013/6/18 Norbert Renner <Norbert.Renner at gmx.de>

>  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<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<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<http://help.openstreetmap.org/questions/13666/openlayers-limit-the-number-of-zoom-levels/13713>
>
> ______________________________**_________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/openlayers-**users<http://lists.osgeo.org/mailman/listinfo/openlayers-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130618/3b1a50d4/attachment.html>


More information about the Users mailing list