Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top