Add oli.View2DState extern
Use oli.View2DState instead of ol.View2DState