diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-10-04 15:05:52 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-10-04 15:05:52 -0700 |
commit | 80ca0a8e5f85538aca6ffcba8b85682cba91bce2 (patch) | |
tree | 4999f2e3be8cef34a2f34d437020ae0fbfd98a66 | |
parent | 482471594ba2aa04424df47113ede9931b1cbd4e (diff) | |
download | qtlocation-mapboxgl-80ca0a8e5f85538aca6ffcba8b85682cba91bce2.tar.gz |
[ios] docs tweaks
-rw-r--r-- | platform/darwin/src/MGLShapeSource.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/platform/darwin/src/MGLShapeSource.h b/platform/darwin/src/MGLShapeSource.h index 94e443b549..07683534e8 100644 --- a/platform/darwin/src/MGLShapeSource.h +++ b/platform/darwin/src/MGLShapeSource.h @@ -43,19 +43,20 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionClus /** An `NSDictionary` object where the key is an `NSString`. The dictionary key will - be the attribute feature attribute key. The resulting attribute value is + be the feature attribute key. The resulting attribute value is aggregated from the clustered points. The dictionary value is an `NSArray` consisting of two objects. - The first object determines how the attributes are accumulated from the cluster - points. You can use one of the following: + The first object determines how the attribute values are accumulated from the + cluster points. The resulting value is assigned to the specified attribute key. + You can use one of the following: * An `[NSExpression expressionForConstantValue:]` containing a single function string, such as `sum:` or `max:`, which takes at least two operands. * An `NSExpression` that takes two expression arguments: `featureAccumulated` and another valid expression. - The second object in the array is an `NSExpression` that produces the value of a - single point within the cluster. + The second `NSExpression` in the array determines which + attribute values are accessed from individual features within a cluster. This option corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources-geojson-clusterProperties"><code>clusterProperties</code></a> |