From e4af5f7c724ce4e8f128b0551549c3e8d3e1e98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Tue, 30 Apr 2019 21:41:24 -0700 Subject: [ios, macos] Removed MGLStyleValue references from documentation --- platform/darwin/src/MGLFeature.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/platform/darwin/src/MGLFeature.h b/platform/darwin/src/MGLFeature.h index 6a8828bf37..3f3526102e 100644 --- a/platform/darwin/src/MGLFeature.h +++ b/platform/darwin/src/MGLFeature.h @@ -97,16 +97,16 @@ NS_ASSUME_NONNULL_BEGIN renders this feature. For example, if you display features in an `MGLShapeSource` using an `MGLCircleStyleLayer`, you can assign a `halfway` attribute to each of the source’s features, then set - `MGLCircleStyleLayer.circleRadius` to an `MGLStyleValue` object with an - interpolation mode of `MGLInterpolationModeIdentity` and an attribute name of - `halfway`. + `MGLCircleStyleLayer.circleRadius` to an expression for the key path `halfway`. - The `MGLSymbolStyleLayer.textField` and `MGLSymbolStyleLayer.iconImageName` + The `MGLSymbolStyleLayer.text` and `MGLSymbolStyleLayer.iconImageName` properties allow you to use attributes yet another way. For example, to label features in an `MGLShapeSource` object by their names, you can assign a `name` attribute to each of the source’s features, then set - `MGLSymbolStyleLayer.textField` to an `MGLStyleValue` object containing the - raw string value `{name}`. + `MGLSymbolStyleLayer.text` to an expression for the constant string value + `{name}`. See the + Predicates and Expressions + guide for more information about expressions. In vector tiles loaded by `MGLVectorTileSource` objects, the keys and values of each feature’s attribute dictionary are determined by the source. Each @@ -141,7 +141,7 @@ NS_ASSUME_NONNULL_BEGIN CSS string representation when the feature is added to an `MGLShapeSource`. This can be convenient when using the attribute to supply a value for a color-typed layout or paint - attribute via the `MGLInterpolationModeIdentity` interpolation mode. + attribute via a key path expression. Note that while it is possible to change this value on feature instances obtained from `-[MGLMapView visibleFeaturesAtPoint:]` and related -- cgit v1.2.1