summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLCircleStyleLayer.h
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2017-07-05 21:15:54 +0200
committerTobrun <tobrun.van.nuland@gmail.com>2017-07-05 21:15:54 +0200
commit79d849dc44e977ca8711adb7a397e5e560cbc80a (patch)
tree8b6264db5bc4370989b7d1128e2e6e45d6f7558b /platform/darwin/src/MGLCircleStyleLayer.h
parent9ab04a29655014f1df24e269ce53942c934c8333 (diff)
downloadqtlocation-mapboxgl-79d849dc44e977ca8711adb7a397e5e560cbc80a.tar.gz
[darwin] - re-add swift documentation
Diffstat (limited to 'platform/darwin/src/MGLCircleStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLCircleStyleLayer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLCircleStyleLayer.h b/platform/darwin/src/MGLCircleStyleLayer.h
index 823824b50f..789ff7a258 100644
--- a/platform/darwin/src/MGLCircleStyleLayer.h
+++ b/platform/darwin/src/MGLCircleStyleLayer.h
@@ -64,6 +64,16 @@ typedef NS_ENUM(NSUInteger, MGLCircleTranslationAnchor) {
### Example
```swift
+ let layer = MGLCircleStyleLayer(identifier: "circles", source: population)
+ layer.sourceLayerIdentifier = "population"
+ layer.circleColor = MGLStyleValue(rawValue: .green)
+ 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)
```
*/
MGL_EXPORT