You can use map.getExtent() to determine current bounds and "contains"
function to check if point is inside it.
Next script listens for map view change and checks point inclusion:
map.events.on({
"move": function () {
if (map.getExtent().contains(yourPoint.x, yourPoint.y)) {
// do whatever you need
}
}
});
2013/4/4 Macbeth, Andrew (US SSA) <[email protected]>
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users