質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top