diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-03-16 18:42:41 -0700 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-03-28 19:35:58 -0400 |
commit | 5ce7411c6e623bf40e47b4580a421cf4d8f3202b (patch) | |
tree | fd4eae17e3590becfe34bd177a1b1c33c06ca605 | |
parent | f10402d1e33d33ca886149ca575a268249a8a976 (diff) | |
download | qtlocation-mapboxgl-5ce7411c6e623bf40e47b4580a421cf4d8f3202b.tar.gz |
[ios, macos] Simplified expression document headings
-rw-r--r-- | platform/darwin/docs/guides/Predicates and Expressions.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/platform/darwin/docs/guides/Predicates and Expressions.md b/platform/darwin/docs/guides/Predicates and Expressions.md index 19d98fd4c1..84e95876f8 100644 --- a/platform/darwin/docs/guides/Predicates and Expressions.md +++ b/platform/darwin/docs/guides/Predicates and Expressions.md @@ -123,9 +123,7 @@ style attributes and also `hyphen-minus` and `tag:subtag`. However, you must use ## Using expressions to configure layout and paint attributes -### Functions - -#### Key paths +### Key paths A key path expression refers to an attribute of the `MGLFeature` object being evaluated for display. For example, if a polygon’s `MGLFeature.attributes` @@ -133,7 +131,7 @@ dictionary contains the `floorCount` key, then the key path `floorCount` refers to the value of the `floorCount` attribute when evaluating that particular polygon. -#### Predefined functions +### Predefined functions Of the [functions predefined by the `+[NSExpression expressionForFunction:arguments:]` method](https://developer.apple.com/documentation/foundation/nsexpression/1413747-init#discussion), @@ -182,7 +180,7 @@ Initializer parameter | Format string syntax `onesComplement:` | `onesComplement(255)` `distanceToLocation:fromLocation:` | `distanceToLocation:fromLocation:(there, here)` -#### Mapbox-specific functions +### Mapbox-specific functions For compatibility with the Mapbox Style Specification, the following functions are defined by this SDK for use with style layers. Because these functions are |