Copy method getResolutionForExtent from ol3
Merge pull request #172 from geoadmin/dev_fix_geolocation

Copy method getResolutionForExtent from ol3