summaryrefslogtreecommitdiff
path: root/platform/darwin/docs/guides/Predicates and Expressions.md
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/docs/guides/Predicates and Expressions.md')
-rw-r--r--platform/darwin/docs/guides/Predicates and Expressions.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/darwin/docs/guides/Predicates and Expressions.md b/platform/darwin/docs/guides/Predicates and Expressions.md
index 90f010e954..c70d76b581 100644
--- a/platform/darwin/docs/guides/Predicates and Expressions.md
+++ b/platform/darwin/docs/guides/Predicates and Expressions.md
@@ -290,6 +290,17 @@ The following variables are defined by this SDK for use with style layers:
<code>NSExpression.zoomLevelVariableExpression</code> property.
</td>
</tr>
+<tr>
+ <td><code>$lineProgress</code></td>
+ <td>Number</td>
+ <td>
+ A number that indicates the relative distance along a line at a given
+ point along the line. This variable evaluates to 0 at the beginning of the
+ line and 1 at the end of the line. It can only be used with the
+ `MGLLineStyleLayer.lineGradient` property. It corresponds to the
+ <code>NSExpression.lineProgressVariableExpression</code> property.
+ </td>
+</tr>
</tbody>
</table>