From 80df3090ecc92a4c04890222928f352aaf467b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Mon, 2 Jan 2017 15:54:17 -0800 Subject: [ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style layer type Also renamed the file to have a slightly more wieldy name. --- platform/ios/docs/guides/For Style Authors.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'platform/ios/docs') 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 -- cgit v1.2.1