summaryrefslogtreecommitdiff
path: root/platform/ios/docs
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-02 15:54:17 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-07 14:37:53 -0800
commit80df3090ecc92a4c04890222928f352aaf467b27 (patch)
tree2963df50f43edc3e09a75c1df868b2f8bf3d69ae /platform/ios/docs
parent428c0fdf70d08dfe433058a66a61bf9c4fb93d9d (diff)
downloadqtlocation-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/ios/docs')
-rw-r--r--platform/ios/docs/guides/For Style Authors.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/platform/ios/docs/guides/For Style Authors.md b/platform/ios/docs/guides/For Style Authors.md
index 96a0661af6..d35d4e5af0 100644
--- a/platform/ios/docs/guides/For Style Authors.md
+++ b/platform/ios/docs/guides/For Style Authors.md
@@ -176,12 +176,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
@@ -200,6 +200,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
@@ -221,14 +229,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