summaryrefslogtreecommitdiff
path: root/platform/macos/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-04-14 12:37:23 -0700
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-04-18 14:43:31 +0300
commit092da9c956de9d623c6f22d073ebb7dcb2f5a23f (patch)
tree81f59b8f687a3d3ed68ba5b601ad7accb45bd453 /platform/macos/src
parent8eb23cbac8a6c5821dc5935e27689700216c3f1a (diff)
downloadqtlocation-mapboxgl-092da9c956de9d623c6f22d073ebb7dcb2f5a23f.tar.gz
[core] Remove non-Map-dependent projection methods from Map
Diffstat (limited to 'platform/macos/src')
-rw-r--r--platform/macos/src/MGLMapView.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index 56f003fcb0..01df48c3da 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -38,6 +38,7 @@
#import <mbgl/util/run_loop.hpp>
#import <mbgl/util/shared_thread_pool.hpp>
#import <mbgl/util/string.hpp>
+#import <mbgl/util/projection.hpp>
#import <map>
#import <unordered_map>
@@ -2692,7 +2693,7 @@ public:
}
- (CLLocationDistance)metersPerPointAtLatitude:(CLLocationDegrees)latitude {
- return _mbglMap->getMetersPerPixelAtLatitude(latitude, self.zoomLevel);
+ return mbgl::Projection::getMetersPerPixelAtLatitude(latitude, self.zoomLevel);
}
#pragma mark Debugging