Replace ol.View2D with ol.View