summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2018-03-16 18:42:53 -0700
committerFabian Guerra <fabian.guerra@mapbox.com>2018-03-28 19:35:58 -0400
commit3f02c5e1a1fa619dadc583d22b5d83cb889cffaa (patch)
treef3442c291f289cdb8e9b612bc93526a8787b4200
parent5ce7411c6e623bf40e47b4580a421cf4d8f3202b (diff)
downloadqtlocation-mapboxgl-3f02c5e1a1fa619dadc583d22b5d83cb889cffaa.tar.gz
[ios, macos] Documented mgl_join:
-rw-r--r--platform/darwin/docs/guides/Predicates and Expressions.md26
1 files changed, 11 insertions, 15 deletions
diff --git a/platform/darwin/docs/guides/Predicates and Expressions.md b/platform/darwin/docs/guides/Predicates and Expressions.md
index 84e95876f8..d1e809ef09 100644
--- a/platform/darwin/docs/guides/Predicates and Expressions.md
+++ b/platform/darwin/docs/guides/Predicates and Expressions.md
@@ -183,10 +183,18 @@ Initializer parameter | Format string syntax
### 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
-not predefined by `NSExpression`, you must use the
+are defined by this SDK. When setting a style layer property, you can call these
+functions just like the predefined functions above, using either the
+`+[NSExpression expressionForFunction:arguments:]` method or a convenient format
+string syntax:
+
+Initializer parameter | Format string syntax | Arguments | Returns
+----------------------|----------------------|-----------|--------
+`mgl_join:` | `mgl_join({'Old', 'MacDonald'})` | An aggregate expression or `NSArray` constant value expression containing one or more `NSExpression`s, each evaluating to a string. | An `NSString` object (the result of concatenating together all the elements of an array in order).
+
+The following custom functions are also available with the
`+[NSExpression expressionForFunction:selectorName:arguments:]` method or the
-`FUNCTION()` format string syntax instead.
+`FUNCTION()` format string syntax:
<table>
<thead>
@@ -310,18 +318,6 @@ not predefined by `NSExpression`, you must use the
</td>
</tr>
<tr>
- <td><code>stringByAppendingString:</code></td>
- <td>
- An `NSExpression` that evaluates to a string.
- </td>
- <td>
- One or more `NSExpression`s, each evaluating to a string.
- </td>
- <td>
- The target string with each of the argument strings appended in order.
- </td>
-</tr>
-<tr>
<td><code>stringValue</code></td>
<td>
An `NSExpression` that evaluates to a Boolean value, number, or string.