<div dir="ltr">In fact, I use the max/minresolution:<div><br></div><div><div style="font-family:arial,sans-serif;font-size:14px"><i><span style="white-space:pre-wrap">                           </span>maxResolution : tresolution[l.minzoom],</i></div>

<div style="font-family:arial,sans-serif;font-size:14px"><i><span style="white-space:pre-wrap">                           </span>minResolution : tresolution[l.maxzoom],</i></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2013/6/18 Norbert Renner <span dir="ltr"><<a href="mailto:Norbert.Renner@gmx.de" target="_blank">Norbert.Renner@gmx.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And during my test, I found that it seems that the min/max resolution<br>
does not work as expected. For example:<br>
<br>
layera(minzoom=0,maxzoom=3) request data from `a.tile`<br>
</blockquote>
<br></div>
minZoomLevel/maxZoomLevel are probably only working with 3rd Party Layers [1]?<br>
<br>
What should work is one of the following combinations of Layer options [2][3]:<br>
<br>
a) zoomOffset + resolutions<br>
b) resolutions + serverResolutions (resolutions as subset)<br>
c) zoomOffset + maxResolution + numZoomLevels<br>
   e.g. with maxResolution = 156543.03390625 / Math.pow(2, zoomOffset)<br>
<br>
Norbert<br>
<br>
[1] <a href="http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels" target="_blank">http://trac.osgeo.org/<u></u>openlayers/wiki/<u></u>SettingZoomLevels</a><br>
[2] <a href="http://dev.openlayers.org/releases/OpenLayers-2.13/doc/apidocs/files/OpenLayers/Layer/WMTS-js.html#OpenLayers.Layer.WMTS.zoomOffset" target="_blank">http://dev.openlayers.org/<u></u>releases/OpenLayers-2.13/doc/<u></u>apidocs/files/OpenLayers/<u></u>Layer/WMTS-js.html#OpenLayers.<u></u>Layer.WMTS.zoomOffset</a><br>


[3] <a href="http://help.openstreetmap.org/questions/13666/openlayers-limit-the-number-of-zoom-levels/13713" target="_blank">http://help.openstreetmap.org/<u></u>questions/13666/openlayers-<u></u>limit-the-number-of-zoom-<u></u>levels/13713</a><div class="HOEnZb">

<div class="h5"><br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>users</a><br>
</div></div></blockquote></div><br></div>