I am trying to capture the extent of my Map on 'moveend' and it seems that the extent that is being captured is zoomed out quite a bit...
idle(event) {
function onMoveEnd(evt) {
const mapChange = map.getView().calculateExtent(map.getSize());
}
MapValues.map.on('moveend', onMoveEnd);
}
I believe this is pretty much what I have seen as examples but it doesn't save the true zoomed extent on moveend.
Any help (especially the right solution :) ) is appreciated!