<font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">i'm using this options to display a google layer and a vector one<br><br> var options = { <br> projection: new OpenLayers.Projection("EPSG:900913"),<br>
displayProjection: new OpenLayers.Projection("EPSG:4326"),<br> units: "km",<br> maxScale: 55468034.09051751,<br> maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),<br>
restrictedExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),<br> controls:[<br> new OpenLayers.Control.Navigation({<br> documentDrag: true, <br>
handleRightClicks:true<br> //,mouseWheelOptions: {interval: 100}<br> }),<br> new OpenLayers.Control.KeyboardDefaults(),<br> new OpenLayers.Control.Scale()<br>
]<br> };<br><br>the </font></font></font><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">restrictedExtent works for panning but zooming is not restricted!<br>on the examples page if found that " </font></font></font>You can either set the scale or the resolution, there is no need to set both. "<br>
so i've put the right maxScale parameter but i can zoom out more and more<br><br>any solutions??<br><br><br>Vito<br><br><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif"><br clear="all"></font></font></font>--<br>
-----------<br>Tafuni Vito<br><a href="mailto:vito@vitotafuni.com">vito@vitotafuni.com</a><br>---------------------------------------------<br>"Verba volant, scripta manent... data corrupted"<br>