diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-06-24 19:42:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 19:42:20 +0200 |
commit | d29bef957fe117158077a5af223d3cee14032ee2 (patch) | |
tree | c6f975fbf0bc4bf224643813a5e4117049704b1f /platform/ios/src/MGLMapViewDelegate.h | |
parent | 05b6e724935277920a2c5f8282993b50d26f9719 (diff) | |
download | qtlocation-mapboxgl-d29bef957fe117158077a5af223d3cee14032ee2.tar.gz |
[ios] fixes #5036 draggable annotation views (#5373)
Diffstat (limited to 'platform/ios/src/MGLMapViewDelegate.h')
-rw-r--r-- | platform/ios/src/MGLMapViewDelegate.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h index 0833b7ace3..173b40f93f 100644 --- a/platform/ios/src/MGLMapViewDelegate.h +++ b/platform/ios/src/MGLMapViewDelegate.h @@ -300,6 +300,18 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)mapView:(MGLMapView *)mapView didDeselectAnnotationView:(MGLAnnotationView *)annotationView; +/** + Tells the delegate that one if its annotation views was dragged to a new coordinate. + + In order to make the new location persistent, you have to update the `coordinate` property of the associated annotation. + + @param mapView The map view containing the annotation view. + @param annotationView The annotation view that was dragged. + @param coordinate The coordinate that the annotation view was dropped on. + + */ +- (void)mapView:(MGLMapView *)mapView didDragAnnotationView:(MGLAnnotationView *)annotationView toCoordinate:(CLLocationCoordinate2D)coordinate; + @end NS_ASSUME_NONNULL_END |