<div>I want to make the panZoomBar contain specific scales. How do I do that?</div>
<div> </div>
<div>I have tried the following the the zoomLevels.html</div>
<div> </div>
<div> var lon = 50;<br> var lat = 0;<br> var zoom = 0;<br> var map, layer;</div>
<div> function init(){<br> OpenLayers.DOTS_PER_INCH = 72;<br> var options = {<br> scales: [50000000, 10000000],<br> controls: [new OpenLayers.Control.MouseDefaults()]<br>
};</div>
<div> map = new OpenLayers.Map( 'map' , options);</div>
<div> map.addControl(new OpenLayers.Control.PanZoomBar());</div>
<div> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",<br> "<a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>", {layers: 'basic'});<br>
map.addLayer(layer);</div>
<div><br> map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<br> }</div>
<div> </div>
<div>I expected to see only two bars in the PanZoomBar. What do I need to do to see that?<br clear="all"><br>-- <br>Linda Rawson </div>