<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=993295418-28022011>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).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=993295418-28022011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=993295418-28022011>Arnd</SPAN></FONT></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>Von:</B>
Steve.Toutant@inspq.qc.ca [mailto:Steve.Toutant@inspq.qc.ca]
<BR><B>Gesendet:</B> Montag, 28. Februar 2011 19:50<BR><B>An:</B> Arnd
Wippermann<BR><B>Cc:</B> 'Luca Santaniello';
openlayers-users-bounces@lists.osgeo.org;
users@openlayers.org<BR><B>Betreff:</B> RE AW: [OpenLayers-Users] Zoom to max
data extent<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT size=2 face=sans-serif>Is it possible to get the max extent
in runtime instead of hard coding the bounds?</FONT> <BR><FONT size=2
face=sans-serif>I have several layers whom extents can change depending on some
vendorParams</FONT> <BR><FONT size=2 face=sans-serif>thanks</FONT> <BR><FONT
size=2 face=sans-serif>Steve</FONT> <BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT size=1 face=sans-serif><B>"Arnd Wippermann"
<arnd.wippermann@web.de>@lists.osgeo.org</B> </FONT><BR><FONT size=1
face=sans-serif>Envoyé par :
openlayers-users-bounces@lists.osgeo.org</FONT>
<P><FONT size=1 face=sans-serif>2011-02-28 13:12</FONT> </P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT size=1 face=sans-serif>A</FONT></DIV>
<TD><FONT size=1 face=sans-serif>"'Luca Santaniello'"
<lsantaniello@cidsoftware.it></FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT size=1 face=sans-serif>cc</FONT></DIV>
<TD><FONT size=1 face=sans-serif>users@openlayers.org</FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT size=1 face=sans-serif>Objet</FONT></DIV>
<TD><FONT size=1 face=sans-serif>AW: [OpenLayers-Users] Zoom to max
data extent</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><BR><BR><TT><FONT
size=2>Set in the layer options<BR><BR>maxExtent : new
OpenLayers.Bounds(...),<BR>displayOutsideMaxExtent: true/false,
<BR><BR>Arnd<BR><BR><BR>-----Ursprüngliche Nachricht-----<BR>Von:
openlayers-users-bounces@lists.osgeo.org<BR>[mailto:openlayers-users-bounces@lists.osgeo.org]
Im Auftrag von Luca<BR>Santaniello<BR>Gesendet: Montag, 28. Februar 2011
12:00<BR>An: openlayers-users@lists.osgeo.org<BR>Betreff: [OpenLayers-Users]
Zoom to max data extent<BR><BR>Hi all,<BR><BR>I need to zoom on openlayes layer.
How can I do it? I add WMS layer at my<BR>map. Then I want zoom on it (layer max
extent, don't map max extent). <BR>If I call layer.maxExtent I obtein map max
extent but I want layer data max<BR>extent. Is is possible? If yes,
How?<BR><BR>Thanks in advance<BR><BR>--<BR>Luca Santaniello<BR>email:
lsantaniello@cidsoftware.it<BR>phone: +39 3470373994<BR>skype:
luca.santaniello<BR>msn:
luketto81@hotmail.com<BR><BR>_______________________________________________<BR>Users
mailing
list<BR>Users@lists.osgeo.org<BR>http://lists.osgeo.org/mailman/listinfo/openlayers-users<BR><BR>_______________________________________________<BR>Users
mailing
list<BR>Users@lists.osgeo.org<BR>http://lists.osgeo.org/mailman/listinfo/openlayers-users<BR></FONT></TT><BR><BR><BR></BODY></HTML>