<div>I think you have to customize PanZoomBar.</div>
<div> </div>
<div>Linda</div>
<div><br><br> </div>
<div class="gmail_quote">On Dec 13, 2007 10:30 AM, The Bun <<a href="mailto:rosario.carbone@ipl.com">rosario.carbone@ipl.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi<br><br>I am using OSM and connecting successfully to their mapnik server.<br>Everything works OK, this is my code:
<br><br> map = new OpenLayers.Map ("map", {<br> controls:[<br> new OpenLayers.Control.Permalink(),<br> new OpenLayers.Control.MouseDefaults
(),<br> new OpenLayers.Control.LayerSwitcher(),<br> new OpenLayers.Control.MousePosition(),<br> new OpenLayers.Control.PanZoomBar()],
<br> maxExtent: new<br>OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),<br> numZoomLevels:17,<br> maxResolution:156543,<br> units:'meters',
<br> projection: "EPSG:41001"} );<br><br> layerMapnik = new OpenLayers.Layer.TMS(<br> "Mapnik (updated weekly)",<br> "<a href="http://tile.openstreetmap.org/mapnik/" target="_blank">
http://tile.openstreetmap.org/mapnik/</a>",<br> {type:'png', getURL: get_osm_url, displayOutsideMaxExtent: true },<br>{'buffer':1} );<br><br>etc. etc.<br><br>What I am not understanding is how to limit the zoom levels to just from
<br>zoom 9 to zoom 16 I tried different ways: An array of scales, an array of<br>resolutions, changing the maxResolution, change the numZoomLevels etc etc<br>always failed, is there someone in the list who can help with this issue?
<br><br>Kind Regards<br>Rosario Carbone<br><font color="#888888">--<br>View this message in context: <a href="http://www.nabble.com/OpenStreetMap---trying-to-limit-zoom-levels-tp14320769p14320769.html" target="_blank">http://www.nabble.com/OpenStreetMap---trying-to-limit-zoom-levels-tp14320769p14320769.html
</a><br>Sent from the OpenLayers Users mailing list archive at <a href="http://nabble.com/" target="_blank">Nabble.com</a>.<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">
Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br></font></blockquote></div><br>