diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-05-26 22:23:06 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-05-27 21:42:39 -0700 |
commit | 974e6696986d49e2eb130e24bde9e75402b0f386 (patch) | |
tree | 884e9429aaab158eee8c7ff1c13950a64ca91bb8 /platform/darwin/src/MGLPolygon.h | |
parent | bacf1f59ca8e06b5b5423a35b4e4c30d92624758 (diff) | |
download | qtlocation-mapboxgl-974e6696986d49e2eb130e24bde9e75402b0f386.tar.gz |
[ios, osx] Ignore compound shape types as annotations
Ignore any multipolyline, multipolygon, or shape collection object passed into -addAnnotation: or -addAnnotations:. Previously, these methods broke apart the compound shape into its constituent shapes in order to recursively add them to the map. But that broke assumptions about a one-to-one correspondence between annotations and their contexts during selection and deletion.
Diffstat (limited to 'platform/darwin/src/MGLPolygon.h')
-rw-r--r-- | platform/darwin/src/MGLPolygon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLPolygon.h b/platform/darwin/src/MGLPolygon.h index e1dc553f30..3d5b36abb6 100644 --- a/platform/darwin/src/MGLPolygon.h +++ b/platform/darwin/src/MGLPolygon.h @@ -60,6 +60,9 @@ NS_ASSUME_NONNULL_BEGIN object to represent an atoll together with an island in the atoll’s lagoon: the atoll itself would be one `MGLPolygon` object, while the inner island would be another. + + @note `MGLMultiPolygon` objects cannot be added to a map view using + `-[MGLMapView addAnnotations:]` and related methods. */ @interface MGLMultiPolygon : MGLShape <MGLOverlay> |