Replaced ol.View2D with ol.View