Using openlayers 5, I'm getting an issue where geometry persists on the map after deleting it - seems like the map isn't updating properly. Is there a way to force an update / refresh of the map and its features? Can't find anything related to that in the documentation.
Tried using map.render()
but that doesn't seem to work either.
Calling .getFeatures()
on my VectorSource object shows that the geometry/object is not in the features list, but it still appears on the map on my page.