summaryrefslogtreecommitdiff
path: root/platform/ios/src
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2016-02-18 17:26:11 -0500
committerJason Wray <jason@mapbox.com>2016-02-18 19:23:15 -0500
commit390057b5691f69f4b2f2f9eeb9e654990adb9e80 (patch)
treee0e4beeaead9245ac75a4363ad5421134bb7fba9 /platform/ios/src
parent9c26f063187b129218910dbb86eb21215a2cdf40 (diff)
downloadqtlocation-mapboxgl-390057b5691f69f4b2f2f9eeb9e654990adb9e80.tar.gz
[ios] Set default polyline and polygon color to the map view tint color
Fixes #3927
Diffstat (limited to 'platform/ios/src')
-rw-r--r--platform/ios/src/MGLMapView.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 748bfc7414..1d5eb2ea77 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -2469,7 +2469,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
{
UIColor *color = (_delegateHasStrokeColorsForShapeAnnotations
? [self.delegate mapView:self strokeColorForShapeAnnotation:annotation]
- : [UIColor blackColor]);
+ : self.tintColor);
return MGLColorObjectFromUIColor(color);
}
@@ -2477,7 +2477,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
{
UIColor *color = (_delegateHasFillColorsForShapeAnnotations
? [self.delegate mapView:self fillColorForPolygonAnnotation:annotation]
- : [UIColor blueColor]);
+ : self.tintColor);
return MGLColorObjectFromUIColor(color);
}