Is it possible to get the max extent in runtime instead of hard coding the 
bounds?
I have several layers whom extents can change depending on some 
vendorParams
thanks
Steve



"Arnd Wippermann" <[email protected]>@lists.osgeo.org 
Envoyé par : [email protected]
2011-02-28 13:12

A
"'Luca Santaniello'" <[email protected]>
cc
[email protected]
Objet
AW: [OpenLayers-Users] Zoom to max data extent








Set in the layer options

maxExtent : new OpenLayers.Bounds(...),
displayOutsideMaxExtent: true/false, 

Arnd
 

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Luca
Santaniello
Gesendet: Montag, 28. Februar 2011 12:00
An: [email protected]
Betreff: [OpenLayers-Users] Zoom to max data extent

Hi all,

I need to zoom on openlayes layer. How can I do it? I add WMS layer at my
map. Then I want zoom on it (layer max extent, don't map max extent). 
If I call layer.maxExtent I obtein map max extent but I want layer data 
max
extent. Is is possible? If yes, How?

Thanks in advance

--
Luca Santaniello
email: [email protected]
phone: +39 3470373994
skype: luca.santaniello
msn: [email protected]

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users



_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to