[ios][documentation] link expression guide to NSExpression(MGLAdditions)

This commit is contained in:
Josh Erb
2018-11-26 13:57:37 -05:00
committed by Josh Erb
parent 361982fef8
commit 9d1d4ecdb8

View File

@@ -10,7 +10,9 @@ This document discusses the specific subset of the predicate and expression
syntax supported by this SDK. For a more general introduction to predicates and
expressions, consult the
_[Predicate Programming Guide](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Predicates/AdditionalChapters/Introduction.html)_
in Apple developer documentation.
in Apple developer documentation. For additional detail on how this SDK has
extended the `NSExpression` class, consult the [`NSExpression(MGLAdditions)`](./Categories/NSExpression(MGLAdditions).html)
section of this documentation.
## Using predicates to filter vector data
@@ -555,9 +557,9 @@ expression that contains references to those variables.
An input expression, then any number of argument pairs, followed by a default
expression. Each argument pair consists of a constant value followed by an
expression to produce as a result of matching that constant value.
If the input value is an aggregate expression, then any of the constant values within
that aggregate expression result in the following argument. This is shorthand for
specifying an argument pair for each of the constant values within that aggregate
If the input value is an aggregate expression, then any of the constant values within
that aggregate expression result in the following argument. This is shorthand for
specifying an argument pair for each of the constant values within that aggregate
expression. It is not possible to match the aggregate expression itself.
</dd>
</dl>
@@ -731,9 +733,9 @@ operator in the Mapbox Style Specification. See also the
<dd>
The first argument is one of the following strings denoting curve types:
<code>linear</code>, <code>exponential</code>, or <code>cubic-bezier</code>.
The second argument is an expression providing parameters for the curve:
<ul>
<li>If the curve type is <code>linear</code>, the argument is <code>NIL</code>.</li>
<li>
@@ -748,7 +750,7 @@ operator in the Mapbox Style Specification. See also the
cubic Bézier curve.
</li>
</ul>
The third argument is an <code>NSDictionary</code> object representing the
interpolation’s stops, with numeric zoom levels as keys and expressions as
values.
@@ -832,7 +834,7 @@ operator.
The first argument is an expression that evaluates to a number, specifying
the minimum value in case the target is less than any of the stops in the
second argument.
The second argument is an <code>NSDictionary</code> object representing the
interpolation’s stops, with numeric zoom levels as keys and expressions as
values.