Change ol.view2d to ol.view