diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-02 15:54:17 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-07 14:37:53 -0800 |
commit | 80df3090ecc92a4c04890222928f352aaf467b27 (patch) | |
tree | 2963df50f43edc3e09a75c1df868b2f8bf3d69ae /platform/macos/docs/guides/For Style Authors.md | |
parent | 428c0fdf70d08dfe433058a66a61bf9c4fb93d9d (diff) | |
download | qtlocation-mapboxgl-80df3090ecc92a4c04890222928f352aaf467b27.tar.gz |
[ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style layer type
Also renamed the file to have a slightly more wieldy name.
Diffstat (limited to 'platform/macos/docs/guides/For Style Authors.md')
-rw-r--r-- | platform/macos/docs/guides/For Style Authors.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/platform/macos/docs/guides/For Style Authors.md b/platform/macos/docs/guides/For Style Authors.md index ceefbcb6ec..003cc516cd 100644 --- a/platform/macos/docs/guides/For Style Authors.md +++ b/platform/macos/docs/guides/For Style Authors.md @@ -164,12 +164,12 @@ object is a member of one of the following subclasses of `MGLStyleLayer`: In style JSON | In the SDK --------------|----------- +`background` | `MGLBackgroundStyleLayer` +`circle` | `MGLCircleStyleLayer` `fill` | `MGLFillStyleLayer` `line` | `MGLLineStyleLayer` -`symbol` | `MGLSymbolStyleLayer` -`circle` | `MGLCircleStyleLayer` `raster` | `MGLRasterStyleLayer` -`background` | `MGLBackgroundStyleLayer` +`symbol` | `MGLSymbolStyleLayer` You configure layout and paint attributes by setting properties on these style layer objects. The property names generally correspond to the style JSON @@ -188,6 +188,14 @@ In style JSON | In Objective-C | In Swift --------------|----------------|--------- `line-dasharray` | `MGLLineStyleLayer.lineDashPattern` | `MGLLineStyleLayer.lineDashPattern` +### Raster style layers + +In style JSON | In Objective-C | In Swift +--------------|----------------|--------- +`raster-brightness-max` | `MGLRasterStyleLayer.maximumRasterBrightness` | `MGLRasterStyleLayer.maximumRasterBrightness` +`raster-brightness-min` | `MGLRasterStyleLayer.minimumRasterBrightness` | `MGLRasterStyleLayer.minimumRasterBrightness` +`raster-hue-rotate` | `MGLRasterStyleLayer.rasterHueRotation` | `MGLRasterStyleLayer.rasterHueRotation` + ### Symbol style layers In style JSON | In Objective-C | In Swift @@ -209,14 +217,6 @@ In style JSON | In Objective-C | In Swift `text-optional` | `MGLSymbolStyleLayer.textOptional` | `MGLSymbolStyleLayer.isTextOptional` `text-rotate` | `MGLSymbolStyleLayer.textRotation` | `MGLSymbolStyleLayer.textRotation` -### Raster style layers - -In style JSON | In Objective-C | In Swift ---------------|----------------|--------- -`raster-brightness-max` | `MGLRasterStyleLayer.maximumRasterBrightness` | `MGLRasterStyleLayer.maximumRasterBrightness` -`raster-brightness-min` | `MGLRasterStyleLayer.minimumRasterBrightness` | `MGLRasterStyleLayer.minimumRasterBrightness` -`raster-hue-rotate` | `MGLRasterStyleLayer.rasterHueRotation` | `MGLRasterStyleLayer.rasterHueRotation` - ## Setting attribute values Each property representing a layout or paint attribute is set to an |