diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-14 12:37:23 -0700 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-18 14:43:31 +0300 |
commit | 092da9c956de9d623c6f22d073ebb7dcb2f5a23f (patch) | |
tree | 81f59b8f687a3d3ed68ba5b601ad7accb45bd453 /platform/ios/src | |
parent | 8eb23cbac8a6c5821dc5935e27689700216c3f1a (diff) | |
download | qtlocation-mapboxgl-092da9c956de9d623c6f22d073ebb7dcb2f5a23f.tar.gz |
[core] Remove non-Map-dependent projection methods from Map
Diffstat (limited to 'platform/ios/src')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index fc4d39a143..4abc77b371 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -31,6 +31,7 @@ #include <mbgl/util/run_loop.hpp> #include <mbgl/util/shared_thread_pool.hpp> #include <mbgl/util/string.hpp> +#include <mbgl/util/projection.hpp> #import "Mapbox.h" #import "MGLFeature_Private.h" @@ -3002,7 +3003,7 @@ public: - (CLLocationDistance)metersPerPointAtLatitude:(CLLocationDegrees)latitude { - return _mbglMap->getMetersPerPixelAtLatitude(latitude, self.zoomLevel); + return mbgl::Projection::getMetersPerPixelAtLatitude(latitude, self.zoomLevel); } - (CLLocationDistance)metersPerPixelAtLatitude:(CLLocationDegrees)latitude |