diff --git a/platform/darwin/src/MGLVectorStyleLayer.h b/platform/darwin/src/MGLVectorStyleLayer.h index c9272ac89..13bb9e79a 100644 --- a/platform/darwin/src/MGLVectorStyleLayer.h +++ b/platform/darwin/src/MGLVectorStyleLayer.h @@ -24,10 +24,101 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, nullable) NSString *sourceLayerIdentifier; /** - A predicate that corresponds to the layer's filter. + The style layer’s predicate. - The predicate's left expression must be a string that identifies a feature - property, or one of the special keys. + Use the style layer’s predicate to include only the features in the source + layer that satisfy a condition that you define. If the style layer initially + comes from the style, its predicate corresponds to the + `filter` + property in the style JSON. + + The following comparison operators are supported. + +
NSEqualToPredicateOperatorType (=, ==)NSGreaterThanOrEqualToPredicateOperatorType (>=, =>)NSLessThanOrEqualToPredicateOperatorType (<=, =<)NSGreaterThanPredicateOperatorType (>)NSLessThanPredicateOperatorType (<)NSNotEqualToPredicateOperatorType (!=, <>)NSBetweenPredicateOperatorType (BETWEEN)NSAndPredicateType (AND, &&)NSOrPredicateType (OR, ||)NSNotPredicateType (NOT, !)NSInPredicateOperatorType (IN)| Attribute | Meaning |
|---|---|
$id |
+
+ A value that uniquely identifies the feature in the containing source.
+ For details on the types of values that may be associated with this key,
+ consult the documentation for the MGLFeature protocol’s
+ identifier property.
+ |
+
$type |
+
+ The type of geometry represented by the feature. A feature’s type is
+ guaranteed to be one of the following strings:
+
|
+
point_count |
+ The number of point features in a given cluster. | +