Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top