diff options
author | Jason Wray <jason@mapbox.com> | 2017-07-19 15:11:53 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-07-19 15:19:29 -0400 |
commit | 5fabed1077d908180898b45dd3d567795f0056d1 (patch) | |
tree | cd7d2a91d6b1a1ae029703fc2c6b2a77762e081b | |
parent | d8ce613001e4dd3f1ed06163a3f0e7c6196b446e (diff) | |
download | qtlocation-mapboxgl-5fabed1077d908180898b45dd3d567795f0056d1.tar.gz |
Reword MGLFeature docs about annotationization
-rw-r--r-- | platform/darwin/src/MGLFeature.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLFeature.h b/platform/darwin/src/MGLFeature.h index 5b64995d83..e2796e6f8b 100644 --- a/platform/darwin/src/MGLFeature.h +++ b/platform/darwin/src/MGLFeature.h @@ -28,9 +28,14 @@ NS_ASSUME_NONNULL_BEGIN While it is possible to add `MGLFeature`-conforming objects to the map as annotations using `-[MGLMapView addAnnotations:]` and related methods, doing so - will convert feature objects into plain annotations. Features added as - annotations will not have `identifier` or `attributes` properties set and - should not be used be with feature querying. + has trade-offs: + + - Features added as annotations are converted into plain annotations. These + annotations will not have `identifier` or `attributes` properties and should + not be used be with feature querying. + + - Features added as annotations become interactive. Taps and selection can be + handled in `-[MGLMapViewDelegate mapView:didSelectAnnotation:]`. */ @protocol MGLFeature <MGLAnnotation> |