summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-09-03 12:57:28 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-09-04 09:16:26 -0700
commit790e8a345c5d0f1afe583db642b986917ba404f8 (patch)
treebe169f6bc36a5a52b51642bf9300e94da2de0c4a /include
parent1aee3c6c521b502b3c37b87ed28a3140f68e87b2 (diff)
downloadqtlocation-mapboxgl-790e8a345c5d0f1afe583db642b986917ba404f8.tar.gz
refs #2039: add passthroughs for adding/removing overlays
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLMapView.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index fc70f3d904..5f839b08cd 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol MGLMapViewDelegate;
@protocol MGLAnnotation;
+@protocol MGLOverlay;
/** An MGLMapView object provides an embeddable map interface, similar to the one provided by Apple's MapKit. You use this class to display map information and to manipulate the map contents from your application. You can center the map on a given coordinate, specify the size of the area you want to display, and style the features of the map to fit your application's use case.
*
@@ -317,6 +318,38 @@ IB_DESIGNABLE
* @param animated If `YES`, the callout view is animated offscreen. */
- (void)deselectAnnotation:(id <MGLAnnotation>)annotation animated:(BOOL)animated;
+#pragma mark - Adding Overlays
+
+/** @name Adding Overlays */
+
+/** Adds a single overlay object to the map.
+*
+* To remove an overlay from a map, use the removeOverlay: method.
+* @param overlay The overlay object to add. This object must conform to the MGLOverlay protocol. */
+- (void)addOverlay:(id <MGLOverlay>)overlay;
+
+/** Adds an array of overlay objects to the map.
+*
+* To remove multiple overlays from a map, use the removeOverlays: method.
+* @param overlays An array of objects, each of which must conform to the MGLOverlay protocol. */
+- (void)addOverlays:(NS_ARRAY_OF(id <MGLOverlay>) *)overlays;
+
+#pragma mark - Removing Overlays
+
+/** @name Removing Overlays */
+
+/** Removes a single overlay object from the map.
+*
+* If the specified overlay is not currently associated with the map view, this method does nothing.
+* @param The overlay object to remove. */
+- (void)removeOverlay:(id <MGLOverlay>)overlay;
+
+/** Removes one or more overlay objects from the map.
+*
+* If a given overlay object is not associated with the map view, it is ignored.
+* @param overlays An array of objects, each of which conforms to the MGLOverlay protocol. */
+- (void)removeOverlays:(NS_ARRAY_OF(id <MGLOverlay>) *)overlays;
+
#pragma mark - Displaying the User's Location
/** @name Displaying the User's Location */