In OpenLayers 5, when getting the view extent using const extent = this.view.calculateExtent(this.map.getSize())
and then converting it to latLng
using toLonLat()
the result values are clamped (-180 to 180 for longitudes) if the map is at a very low zoom level.
Is there any way of avoiding this clamping, like for example using another projection, or another function?
ol.proj.transform(
) orol.proj.transformExtent()
to transform to 'EPSG:4326'. UnliketoLonLat()
they won't normalise the longitude. – Mike