Should this be `map.getView().getView2D().getResolution()` instead?