summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-10-03 15:38:08 -0700
committerJason Wray <jason@mapbox.com>2017-10-18 19:15:43 -0400
commit7b0147c58783d02852ef08ba74ee2798654e21aa (patch)
tree4d7591399fee5484c662e1a2c62c62abd0f544b1
parentefcb9ee23129c6c1a863ab4908960dd46328248c (diff)
downloadqtlocation-mapboxgl-7b0147c58783d02852ef08ba74ee2798654e21aa.tar.gz
[ios] Slightly round the corners of the puck arrow
-rw-r--r--platform/ios/src/MGLFaux3DUserLocationAnnotationView.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m b/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m
index 21f6aaa540..63e754d9c6 100644
--- a/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m
+++ b/platform/ios/src/MGLFaux3DUserLocationAnnotationView.m
@@ -10,7 +10,7 @@ const CGFloat MGLUserLocationAnnotationDotSize = 22.0;
const CGFloat MGLUserLocationAnnotationHaloSize = 115.0;
const CGFloat MGLUserLocationAnnotationPuckSize = 45.0;
-const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuckSize * 0.6;
+const CGFloat MGLUserLocationAnnotationArrowSize = MGLUserLocationAnnotationPuckSize * 0.5;
const CGFloat MGLUserLocationHeadingUpdateThreshold = 0.01;
@@ -181,6 +181,10 @@ const CGFloat MGLUserLocationHeadingUpdateThreshold = 0.01;
_puckArrow.rasterizationScale = [UIScreen mainScreen].scale;
_puckArrow.drawsAsynchronously = YES;
+ _puckArrow.lineJoin = @"round";
+ _puckArrow.lineWidth = 1.f;
+ _puckArrow.strokeColor = _puckArrow.fillColor;
+
[self.layer addSublayer:_puckArrow];
}
if (self.userLocation.location.course >= 0)