RE AW: [OpenLayers-Users] Zoom to max data extent
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Mon Feb 28 13:50:05 EST 2011
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" <arnd.wippermann at web.de>@lists.osgeo.org
Envoyé par : openlayers-users-bounces at lists.osgeo.org
2011-02-28 13:12
A
"'Luca Santaniello'" <lsantaniello at cidsoftware.it>
cc
users at openlayers.org
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: 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
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110228/12b52985/attachment.html
More information about the Users
mailing list