diff options
author | Eimantas <eimantas@users.noreply.github.com> | 2017-05-21 06:32:10 +0300 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-05-20 20:32:10 -0700 |
commit | 9e6a79ad9b8182105088ff21f1dcbaf3c5c9bb69 (patch) | |
tree | 1ab19b871978ae6c663fa9a2a00c17e3cf901359 /platform/ios/src/MGLMapView.h | |
parent | 1f921299b0fc43c04cf0d16138d642a5d4e70930 (diff) | |
download | qtlocation-mapboxgl-9e6a79ad9b8182105088ff21f1dcbaf3c5c9bb69.tar.gz |
[ios, macos] Add overlays property to MGLMapView (#8617)
* Add `overlays` property to `MGLMapView.mm`
Implemented by filtering the `annotations` property for
annotations that conform to `MGLOverlay` protocol.
* Handle `nil` case when returning overlays
* Add basic documentation for `overlays` property
Copied verbatim from `annotations` property. Changed types.
* Add `overlays` property to iOS sdk
Implementation is identical to the one in macOS SDK.
* Match curly braces style
* Make `overlays` property `nonnull` on iOS
* Make `overlays` property `nonnull` on macOS
* Make cosmetic changes
* [ios, macos] Moved changelog entry to master
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r-- | platform/ios/src/MGLMapView.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 8d26b1c90e..ca765a046b 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -1131,6 +1131,15 @@ IB_DESIGNABLE #pragma mark Overlaying the Map /** + The complete list of overlays associated with the receiver. (read-only) + + The objects in this array must adopt the `MGLOverlay` protocol. If no + overlays are associated with the map view, the value of this property is + empty array. + */ +@property (nonatomic, readonly, nonnull) NS_ARRAY_OF(id <MGLOverlay>) *overlays; + +/** Adds a single overlay object to the map. To remove an overlay from a map, use the `-removeOverlay:` method. |