summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-09-28 15:05:22 -0700
committerMinh Nguyễn <mxn@1ec5.org>2017-09-28 19:10:06 -0700
commit093d9da6ef4d5add137149c956d115f185bd4795 (patch)
treebda7a59fb93f454aa562a21624af1cae02558bcf
parenta323b0dcec65056f04d994bda8fd3ee475d1639f (diff)
downloadqtlocation-mapboxgl-093d9da6ef4d5add137149c956d115f185bd4795.tar.gz
[ios] Define user dot constants in implementation file
-rw-r--r--platform/ios/src/MGLFaux3DUserLocationAnnotationView.h10
-rw-r--r--platform/ios/src/MGLFaux3DUserLocationAnnotationView.m8
2 files changed, 13 insertions, 5 deletions
diff --git a/platform/ios/src/MGLFaux3DUserLocationAnnotationView.h b/platform/ios/src/MGLFaux3DUserLocationAnnotationView.h
index da5c7155a5..35fb31a342 100644
--- a/platform/ios/src/MGLFaux3DUserLocationAnnotationView.h
+++ b/platform/ios/src/MGLFaux3DUserLocationAnnotationView.h
@@ -1,14 +1,14 @@
#import <UIKit/UIKit.h>
#import "MGLUserLocationAnnotationView.h"
-const CGFloat MGLUserLocationAnnotationDotSize = 22.0;
-const CGFloat MGLUserLocationAnnotationHaloSize = 115.0;
+extern const CGFloat MGLUserLocationAnnotationDotSize;
+extern const CGFloat MGLUserLocationAnnotationHaloSize;
-const CGFloat MGLUserLocationAnnotationPuckSize = 45.0;
-const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuckSize * 0.6;
+extern const CGFloat MGLUserLocationAnnotationPuckSize;
+extern const CGFloat MGLUserLocationAnnotationArrowSize;
// Threshold in radians between heading indicator rotation updates.
-const CGFloat MGLUserLocationHeadingUpdateThreshold = 0.01;
+extern const CGFloat MGLUserLocationHeadingUpdateThreshold;
@interface MGLFaux3DUserLocationAnnotationView : MGLUserLocationAnnotationView
diff --git a/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m b/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m
index 7001569b30..21f6aaa540 100644
--- a/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m
+++ b/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m
@@ -6,6 +6,14 @@
#import "MGLUserLocationHeadingArrowLayer.h"
#import "MGLUserLocationHeadingBeamLayer.h"
+const CGFloat MGLUserLocationAnnotationDotSize = 22.0;
+const CGFloat MGLUserLocationAnnotationHaloSize = 115.0;
+
+const CGFloat MGLUserLocationAnnotationPuckSize = 45.0;
+const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuckSize * 0.6;
+
+const CGFloat MGLUserLocationHeadingUpdateThreshold = 0.01;
+
@implementation MGLFaux3DUserLocationAnnotationView
{
BOOL _puckModeActivated;