<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>Others, who have done something similar ( i guess ) have marked the area, either with an invisible polygon, and then check if its visible. Or you can find out at which bounds the city is visible in and use the map.getExtent to get the BBOX and check if
 the city bounds are within the viewport BBOX (Bounding Box).</div>
<div><br>
</div>
<div><a href="http://dev.openlayers.org/apidocs/files/OpenLayers/BaseTypes/Bounds-js.html#OpenLayers.Bounds">http://dev.openlayers.org/apidocs/files/OpenLayers/BaseTypes/Bounds-js.html#OpenLayers.Bounds</a></div>
<div><br>
</div>
<div>
<div style="font-family: Calibri; font-size: medium; ">
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: SimSun; ">
<span style="font-family: Calibri, sans-serif; color: rgb(127, 127, 127); ">Med vennlig hilsen / Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: SimSun; ">
<b><span style="font-family: Calibri, sans-serif; color: rgb(64, 64, 64); "> </span></b></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: SimSun; ">
</p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif; ">
<b><span lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif; color: navy; ">Christer Nordbø</span></b><span lang="EN-US" style="font-size: 7.5pt; font-family: Arial, sans-serif; color: navy; "><br>
</span><br>
</p>
</div>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: SimSun; ">
<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></p>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"Macbeth, Andrew (US SSA)" <<a href="mailto:andrew.macbeth@baesystems.com">andrew.macbeth@baesystems.com</a>><br>
<span style="font-weight:bold">Date: </span>Thu, 4 Apr 2013 19:18:00 +0000<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>" <<a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>[OpenLayers-Users] Is point visible<br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’ve poked around and around and don’t a means to determine whether a given point is visible to the user. For example, if the user has scrolled the map away from Boston such that it can not be seen, how can I determine that?           
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
_______________________________________________ Users mailing list <a href="mailto:Users@lists.osgeo.org">
Users@lists.osgeo.org</a> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">
http://lists.osgeo.org/mailman/listinfo/openlayers-users</a> </span>
</body>
</html>