Copy method getResolutionForExtent from ol3

fix #167