summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLCircleStyleLayer.h
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2017-02-08 12:29:51 -0800
committerGitHub <noreply@github.com>2017-02-08 12:29:51 -0800
commitbd2f3a28a5d401ad41a5353c662c2f739cb34fc9 (patch)
treeb9df737dbf760559aee4bc25bf440507890d0d3b /platform/darwin/src/MGLCircleStyleLayer.h
parentc639105c9f7b92e4d8307b2b403275d537a76844 (diff)
downloadqtlocation-mapboxgl-bd2f3a28a5d401ad41a5353c662c2f739cb34fc9.tar.gz
[ios, macos] Update documentation examples to use new style functions (#7960)
Diffstat (limited to 'platform/darwin/src/MGLCircleStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLCircleStyleLayer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLCircleStyleLayer.h b/platform/darwin/src/MGLCircleStyleLayer.h
index 8d3497e423..7ecce8b2e3 100644
--- a/platform/darwin/src/MGLCircleStyleLayer.h
+++ b/platform/darwin/src/MGLCircleStyleLayer.h
@@ -67,10 +67,10 @@ typedef NS_ENUM(NSUInteger, MGLCircleTranslationAnchor) {
let layer = MGLCircleStyleLayer(identifier: "circles", source: population)
layer.sourceLayerIdentifier = "population"
layer.circleColor = MGLStyleValue(rawValue: .green)
- layer.circleRadius = MGLStyleValue(interpolationBase: 1.75, stops: [
- 12: MGLStyleValue(rawValue: 2),
- 22: MGLStyleValue(rawValue: 180)
- ])
+ layer.circleRadius = MGLStyleValue(interpolationMode: .exponential,
+ cameraStops: [12: MGLStyleValue(rawValue: 2),
+ 22: MGLStyleValue(rawValue: 180)],
+ options: [.interpolationBase: 1.75])
layer.circleOpacity = MGLStyleValue(rawValue: 0.7)
layer.predicate = NSPredicate(format: "%K == %@", "marital-status", "married")
mapView.style?.addLayer(layer)