In fact, I use the max/minresolution: * maxResolution : tresolution[l.minzoom],* * minResolution : tresolution[l.maxzoom],*
2013/6/18 Norbert Renner <[email protected]> > 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 > [email protected] > http://lists.osgeo.org/**mailman/listinfo/openlayers-**users<http://lists.osgeo.org/mailman/listinfo/openlayers-users> >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
