As I recall, `view2D.getResolutionForExtent` is not exposed by ol3, it true, this wouldn't work in prod.