<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi,</span></div><div><br><span></span></div><div><span>where can i find the maxResolution 'magic' numbers?, In the example you privide i see </span>'maxResolution: 76.4370827453613', i'va tried to change it but then the layers didn't load.</div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> Andreas Hocevar &lt;ahocevar@opengeo.org&gt;<br> <b><span style="font-weight: bold;">Para:</span></b> Javier Mr &lt;javiersdevmail@ymail.com&gt; <br><b><span style="font-weight:
 bold;">CC:</span></b> "openlayers-users@lists.osgeo.org" &lt;openlayers-users@lists.osgeo.org&gt; <br> <b><span style="font-weight: bold;">Enviado:</span></b> Miércoles 1 de febrero de 2012 19:50<br> <b><span style="font-weight: bold;">Asunto:</span></b> Re: [OpenLayers-Users] Setting zoom levels<br> </font> </div> <br>Hi,<br><br>for all non-proprietary-API layers, the options to use are<br>maxResolution and numZoomLevels. See<br><a href="http://openlayers.org/dev/examples/bing-tiles-restrictedzoom.html" target="_blank">http://openlayers.org/dev/examples/bing-tiles-restrictedzoom.html</a><br><br>For making other tiled layer types work on top of a Google base layer<br>that is configured with a minZoom, you should be able to get things<br>working using the zoomOffset option and setting it to the minZoom<br>value you provided for Google.<br><br>Andreas.<br><br>On Wed, Feb 1, 2012 at 4:29 PM, Javier Mr &lt;<a ymailto="mailto:javiersdevmail@ymail.com"
 href="mailto:javiersdevmail@ymail.com">javiersdevmail@ymail.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; i'm having problems setting the zoom levels using OpenLayers.<br>&gt;<br>&gt; By default the map (and it's base layers) are created with 18 zoom levels<br>&gt; (from 0 to 17). Now we need to change that from 2 to 17.<br>&gt;<br>&gt; I have tried, in a Google layer, settign minZoomLevel = 2 and numZoomLevels<br>&gt; = 16, and what i get is that the zoom levels go from 0 to 15. The map looks<br>&gt; good and this prevent the users from see the map too small, but the zoom<br>&gt; indexes go from 0 to 15. This is a handicap since we use the zoom level to<br>&gt; access the features that are going to be painted on the map from a diferent<br>&gt; service. Is there a way to set up the minZoom and the numZoomLevels so that<br>&gt; i get a range of zoom from [minZoom, minZoom + numZoomLevels]?<br>&gt;<br>&gt; The previous point is almost solved wrapping the
 calls to map.getZoom(), in<br>&gt; that wrapper i add the minZoom value.<br>&gt;<br>&gt; But now i found (apparently) that WMS layers (like OSM) doesn't support<br>&gt; minZoom, is the a way that i can achieve this in all types of layers<br>&gt; (currently using Google, OSM and WMS)?<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; Javier.<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>&gt;<br><br><br><br>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>Expert service straight from the developers.<br><br><br> </div> </div> </blockquote></div>   </div></body></html>