AW: [OpenLayers-Users] Zoom to max data extent

Arnd Wippermann arnd.wippermann at web.de
Mon Feb 28 13:12:31 EST 2011


Set in the layer options

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

Arnd
 

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Luca
Santaniello
Gesendet: Montag, 28. Februar 2011 12:00
An: openlayers-users at lists.osgeo.org
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: lsantaniello at cidsoftware.it
phone: +39 3470373994
skype: luca.santaniello
msn: luketto81 at hotmail.com

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list