Use map.getView().getView2D() to be more strict with types.