I&#39;m currently fighting with the same problem... is there already an easier way to accomplish this?<br><br>I was playing around a while with minZoomLevel/maxZoomLevel but couldn&#39;t get Openlayers to display just the OSM zoomlevels 11 - 18.<br>
<br>Nevertheless thanks a lot for this valuable hint,<br><br>Franz<br><br><div class="gmail_quote">2012/1/24 Marc Jansen <span dir="ltr">&lt;<a href="mailto:jansen@terrestris.de" target="_blank">jansen@terrestris.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andreas,<br>
<br>
helpfull as always! This is indeed a very cool addition to OpenLayers. I will see if the application in question can move to git-master.<br>
<br>
Thanks a lot and kind regards,<br>
Marc<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 24.01.2012 15:20, Andreas Hocevar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not with the 2.11 release, but with current master (this was fixed<br>
shortly after the release):<br>
<br>
     new OpenLayers.Map({<br>
         div: &quot;map&quot;,<br>
         layers: [new OpenLayers.Layer.OSM(null, null, {<br>
             resolutions: [76.43702827148438, 19.109257067871095],<br>
             serverResolutions: [156543.03390625, 78271.516953125,<br>
                 39135.7584765625, 19567.87923828125, 9783.939619140625,<br>
                 4891.9698095703125, 2445.9849047851562, 1222.9924523925781,<br>
                 611.4962261962891, 305.74811309814453, 152.87405654907226,<br>
                 76.43702827453613, 38.218514137268066, 19.109257068634033,<br>
                 9.554628534317017, 4.777314267158508, 2.388657133579254,<br>
                 1.194328566789627, 0.5971642833948135, 0.29858214169740677,<br>
                 0.14929107084870338, 0.07464553542435169]<br>
         })],<br>
         center: new OpenLayers.LonLat(16.37, 48.21).transform(<br>
             new OpenLayers.Projection(&quot;EPSG:<u></u>4326&quot;),<br>
             new OpenLayers.Projection(&quot;EPSG:<u></u>900913&quot;)<br>
         )<br>
     });<br>
<br>
Andreas.<br>
<br>
On Tue, Jan 24, 2012 at 2:31 PM, Marc Jansen&lt;<a href="mailto:jansen@terrestris.de" target="_blank">jansen@terrestris.de</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
I currently fail at implementing the following:<br>
<br>
Build a map that has a OpenLayers.Layer.OSM-layer, but which will only<br>
display some of the possible zoomlevels, e.g. only the zoomlevel 11<br>
(resolution = 76.43702827148438) and the zoomlevel 13 (resolution =<br>
19.109257067871095).<br>
<br>
This sounds easy at first... but yet I am struggling with this. I tried<br>
numerous combinations of resolutions, serverResolutions and zoomOffset but<br>
without success. Is this doable with current 2.11-API?<br>
<br>
Thanks for any help on this.<br>
<br>
Best regards,<br>
Marc<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>
</blockquote>
<br>
<br>
</blockquote>
<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>