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).

http://dev.openlayers.org/apidocs/files/OpenLayers/BaseTypes/Bounds-js.html#OpenLayers.Bounds

Med vennlig hilsen / Kind regards,

Christer Nordbø



From: "Macbeth, Andrew (US SSA)" 
<andrew.macb...@baesystems.com<mailto:andrew.macb...@baesystems.com>>
Date: Thu, 4 Apr 2013 19:18:00 +0000
To: "openlayers-users@lists.osgeo.org<mailto:openlayers-users@lists.osgeo.org>" 
<openlayers-users@lists.osgeo.org<mailto:openlayers-users@lists.osgeo.org>>
Subject: [OpenLayers-Users] Is point visible

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?

_______________________________________________ Users mailing list 
us...@lists.osgeo.org<mailto:us...@lists.osgeo.org> 
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to