<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 <ahocevar@opengeo.org><br> <b><span style="font-weight: bold;">Para:</span></b> Javier Mr <javiersdevmail@ymail.com> <br><b><span style="font-weight:
bold;">CC:</span></b> "openlayers-users@lists.osgeo.org" <openlayers-users@lists.osgeo.org> <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 <<a ymailto="mailto:javiersdevmail@ymail.com"
href="mailto:javiersdevmail@ymail.com">javiersdevmail@ymail.com</a>> wrote:<br>> Hi,<br>><br>> i'm having problems setting the zoom levels using OpenLayers.<br>><br>> By default the map (and it's base layers) are created with 18 zoom levels<br>> (from 0 to 17). Now we need to change that from 2 to 17.<br>><br>> I have tried, in a Google layer, settign minZoomLevel = 2 and numZoomLevels<br>> = 16, and what i get is that the zoom levels go from 0 to 15. The map looks<br>> good and this prevent the users from see the map too small, but the zoom<br>> indexes go from 0 to 15. This is a handicap since we use the zoom level to<br>> access the features that are going to be painted on the map from a diferent<br>> service. Is there a way to set up the minZoom and the numZoomLevels so that<br>> i get a range of zoom from [minZoom, minZoom + numZoomLevels]?<br>><br>> The previous point is almost solved wrapping the
calls to map.getZoom(), in<br>> that wrapper i add the minZoom value.<br>><br>> But now i found (apparently) that WMS layers (like OSM) doesn't support<br>> minZoom, is the a way that i can achieve this in all types of layers<br>> (currently using Google, OSM and WMS)?<br>><br>> Thanks.<br>><br>> Javier.<br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>><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>