[OpenLayers-Users] Is point visible

Christer Nordbø christer at gdm.no
Fri Apr 5 00:44:53 PDT 2013


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.macbeth at baesystems.com<mailto:andrew.macbeth at baesystems.com>>
Date: Thu, 4 Apr 2013 19:18:00 +0000
To: "openlayers-users at lists.osgeo.org<mailto:openlayers-users at lists.osgeo.org>" <openlayers-users at lists.osgeo.org<mailto:openlayers-users at 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 Users at lists.osgeo.org<mailto: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/20130405/d334d346/attachment.html>


More information about the Users mailing list