After adding the features I would like the map to zoom as much as possible so that all markers are visible at once. How to do that? Previous versions had a zoomToExtent method which is now missing, obviously.

I tried the map.getView().fit(...) method with various inputs, but I didn't manage. The view stays fixed to such location: