0
votes

In the Google Map's javascript API you can call map.getBounds().getNorthEast() or map.getBounds().getSouthWest(), which returns the coordindates for the currently visible viewport.

Is there an equivalent in OpenLayers?

1
Strictly, there are no equivalent functions in OpenLayers, but OpenLayers.Map.getExtent() returns the data in a data structure that you can use to calculate these values. - jack

1 Answers

0
votes

OpenLayers.Map.getExtent() is what you're looking for.