hi,<br>how can i do zoom layer? <span id="result_box" class="" lang="en"><span class="hps">at the time</span> <span class="hps">I select</span> <span class="hps">the</span> <span class="hps">layer</span> <span class="hps">in the</span> <span class="hps">layer</span> <span class="hps">tree</span> <span class="hps">that it makes the</span> <span class="hps">zoom to</span> <span class="hps">the selected layer.</span></span> I don&#39;t find a clear manner to do it.<br>
this my code<br><br>var options= {<br>    maxExtent:new OpenLayers.Bounds(-25.96338, 31.60791, 4.05127, 60.30420),<br>    units:&quot;m&quot;};<br>mapPanel = new GeoExt.MapPanel({<br>        border: true,<br>        region: &quot;center&quot;,<br>
        height: 668,<br>        width: 400,<br>        //no queremos todas las superposiciones.<br>        map: new OpenLayers.Map({allOverlays: false}),<br>        center: [-11, 46],<br>        zoom: 5,<br>        layers: [<br>
            new OpenLayers.Layer.WMS(&quot;World Map&quot;,<br>            &quot;<a href="http://www2.demis.nl/wms/wms.ashx?WMS=WorldMap">http://www2.demis.nl/wms/wms.ashx?WMS=WorldMap</a>&quot;,<br>            {layers: &#39;*&#39;, format: &#39;image/png&#39;},<br>
            {singleTile: true}<br>            ),<br>new OpenLayers.Layer.WMS(&quot;Mareas&quot;,<br>                &quot;http://***/geowms&quot;, {<br>                    layers: &quot;Mareas&quot;,<br>                    transparent: true,<br>
                    format: &quot;image/gif&quot;<br>                    <br>                }, {<br>                    isBaseLayer: false,<br>                    buffer: 0,<br>                    visibility: false,<br>                    zoom:2<br>
                    //numZoomLevels: 4// a partir del zoom que lo muestra<br>                }<br>            ),    <br><br>Can someone to help me? please.<br>thanks in regards.<br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>