How to get the current viewport of the map out of OpenLayers as geometry, bounding box or wkt?

I’m trying to find some hints where I should search for this topic but I’ve nothing found – and I spent many hours on this.

I’m also trying to get the current coordinates out of the current displayed viewport from the OpenLayers map to add only these vectors that are in the current bounding box of the current viewport.

89 thoughts on “How to get the current viewport of the map out of OpenLayers as geometry, bounding box or wkt?”

Leave a Comment