AW: [OpenLayers-Users] Zoom to max data extent
Arnd Wippermann
arnd.wippermann at web.de
Mon Feb 28 14:00:55 EST 2011
Propably the only possibility is to request the GetCapabilties of the WMS
server. But the described bounding boxes are often useless
(i.e:-180,-90,180,90).
Arnd
_____
Von: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca]
Gesendet: Montag, 28. Februar 2011 19:50
An: Arnd Wippermann
Cc: 'Luca Santaniello'; openlayers-users-bounces at lists.osgeo.org;
users at openlayers.org
Betreff: RE AW: [OpenLayers-Users] Zoom to max data extent
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/7df98460/attachment.html
More information about the Users
mailing list