summaryrefslogtreecommitdiff
path: root/platform/ios
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/ios
parent8eb23cbac8a6c5821dc5935e27689700216c3f1a (diff)
downloadqtlocation-mapboxgl-092da9c956de9d623c6f22d073ebb7dcb2f5a23f.tar.gz
[core] Remove non-Map-dependent projection methods from Map
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/src/MGLMapView.mm3
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