[OpenLayers-Users] zoomlayer
Emilio Otero
emeotero at gmail.com
Fri Oct 7 09:25:19 EDT 2011
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111007/8ef2ce5a/attachment.html
More information about the Users
mailing list