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'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:"m"};<br>mapPanel = new GeoExt.MapPanel({<br> border: true,<br> region: "center",<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("World Map",<br> "<a href="http://www2.demis.nl/wms/wms.ashx?WMS=WorldMap">http://www2.demis.nl/wms/wms.ashx?WMS=WorldMap</a>",<br> {layers: '*', format: 'image/png'},<br>
{singleTile: true}<br> ),<br>new OpenLayers.Layer.WMS("Mareas",<br> "http://***/geowms", {<br> layers: "Mareas",<br> transparent: true,<br>
format: "image/gif"<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>