<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=046310909-04082010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=046310909-04082010>you mean this?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=046310909-04082010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>var
winWidth = map.getSize().w;<BR>var winHeight =
map.getSize().h;<BR></DIV></FONT>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><A
href="http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html">http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html</A></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=046310909-04082010><FONT color=#0000ff size=2
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Kalyan
Kamepalli<BR><B>Gesendet:</B> Mittwoch, 4. August 2010 08:39<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users] Current Map
Bounds & Width, Height<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif>Sorry. </FONT></FONT></FONT>
<DIV><FONT size=2></FONT><FONT class=Apple-style-span color=#000099
face="arial, helvetica, sans-serif"><BR></FONT>
<DIV><FONT color=#000099><FONT size=2><FONT face=arial,helvetica,sans-serif>used
getExtent on wrong instance. I used it on Layer not on map. Now used on map
instance and It worked. </FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT face=arial,helvetica,sans-serif>But,
I could not find any functions to get the width and height values of current
map.</FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif><BR></FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT face=arial,helvetica,sans-serif>Any
suggestions and help are much appreciated.</FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif><BR></FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif>Thanks,</FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif>Kalyan.<BR></FONT></FONT></FONT><BR>
<DIV class=gmail_quote>On Wed, Aug 4, 2010 at 4:28 PM, Kalyan Kamepalli <SPAN
dir=ltr><<A
href="mailto:kalyan.kamepalli@gmail.com">kalyan.kamepalli@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif>Hi,</FONT></FONT></FONT>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif><BR></FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif>How to get the current map bounds given that I
have map object handle. The map API says getExtent returns the current view
port bounds in lat lon. But, When I used this function , I get undefined. Is
there any other options to get current map bounds and height , width values
?? </FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif><BR></FONT></FONT></FONT></DIV>
<DIV><FONT color=#000099><FONT size=2><FONT
face=arial,helvetica,sans-serif><SPAN
style="FONT-FAMILY: Verdana, Arial, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px">
<TABLE style="WIDTH: 955px; FONT-SIZE: 9pt" border=0 cellSpacing=0
cellPadding=0>
<TBODY>
<TR>
<TD style="PADDING-LEFT: 3ex; WIDTH: 266px; VERTICAL-ALIGN: top"></TD>
<TD
style="PADDING-LEFT: 5ex; WIDTH: 633px; VERTICAL-ALIGN: top"><BR><BR><BR><BR><BR></TD></TR></TBODY></TABLE></SPAN></FONT></FONT></FONT></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BODY></HTML>