hi,
how can i do zoom layer? at the time I select the layer in the layer tree that
it makes the zoom to the selected layer. I don't find a clear manner to do
it.
this my code

var options= {
    maxExtent:new OpenLayers.Bounds(-25.96338, 31.60791, 4.05127, 60.30420),
    units:"m"};
mapPanel = new GeoExt.MapPanel({
        border: true,
        region: "center",
        height: 668,
        width: 400,
        //no queremos todas las superposiciones.
        map: new OpenLayers.Map({allOverlays: false}),
        center: [-11, 46],
        zoom: 5,
        layers: [
            new OpenLayers.Layer.WMS("World Map",
            "http://www2.demis.nl/wms/wms.ashx?WMS=WorldMap";,
            {layers: '*', format: 'image/png'},
            {singleTile: true}
            ),
new OpenLayers.Layer.WMS("Mareas",
                "http://***/geowms";, {
                    layers: "Mareas",
                    transparent: true,
                    format: "image/gif"

                }, {
                    isBaseLayer: false,
                    buffer: 0,
                    visibility: false,
                    zoom:2
                    //numZoomLevels: 4// a partir del zoom que lo muestra
                }
            ),

Can someone to help me? please.
thanks in regards.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to