diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2017-07-05 21:15:54 +0200 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2017-07-05 21:15:54 +0200 |
commit | 79d849dc44e977ca8711adb7a397e5e560cbc80a (patch) | |
tree | 8b6264db5bc4370989b7d1128e2e6e45d6f7558b /platform/darwin/src/MGLFillStyleLayer.h | |
parent | 9ab04a29655014f1df24e269ce53942c934c8333 (diff) | |
download | qtlocation-mapboxgl-79d849dc44e977ca8711adb7a397e5e560cbc80a.tar.gz |
[darwin] - re-add swift documentation
Diffstat (limited to 'platform/darwin/src/MGLFillStyleLayer.h')
-rw-r--r-- | platform/darwin/src/MGLFillStyleLayer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLFillStyleLayer.h b/platform/darwin/src/MGLFillStyleLayer.h index 8776f17bcb..6e3297bdec 100644 --- a/platform/darwin/src/MGLFillStyleLayer.h +++ b/platform/darwin/src/MGLFillStyleLayer.h @@ -42,6 +42,11 @@ typedef NS_ENUM(NSUInteger, MGLFillTranslationAnchor) { ### Example ```swift + let layer = MGLFillStyleLayer(identifier: "parks", source: parks) + layer.sourceLayerIdentifier = "parks" + layer.fillColor = MGLStyleValue(rawValue: .green) + layer.predicate = NSPredicate(format: "type == %@", "national-park") + mapView.style?.addLayer(layer) ``` */ MGL_EXPORT |