diff options
author | Jordan Kiley <jmkiley@users.noreply.github.com> | 2017-03-07 17:39:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 17:39:42 -0800 |
commit | ece19acd10a09922a3106872c720b00089bf4b5b (patch) | |
tree | 1f6ee8ff60a6897af6750e36bd48964e1385ea6e /platform/macos | |
parent | a6bbf09fa6a05dab63102fbdfab310fb71cd113d (diff) | |
download | qtlocation-mapboxgl-ece19acd10a09922a3106872c720b00089bf4b5b.tar.gz |
[ios, macos] Added a timing note for two delegate methods (#8259)
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/src/MGLMapViewDelegate.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/platform/macos/src/MGLMapViewDelegate.h b/platform/macos/src/MGLMapViewDelegate.h index 08a9f7eff4..dae5b40286 100644 --- a/platform/macos/src/MGLMapViewDelegate.h +++ b/platform/macos/src/MGLMapViewDelegate.h @@ -40,10 +40,12 @@ NS_ASSUME_NONNULL_BEGIN This method is called as the currently displayed map camera changes as part of an animation, whether due to a user gesture or due to a call to a method such - as `-[MGLMapView setCamera:animated:]`. During the animation, this method may - be called many times to report updates to the viewpoint. Therefore, your - implementation of this method should be as lightweight as possible to avoid - affecting performance. + as `-[MGLMapView setCamera:animated:]`. This method can be called before + `-mapViewDidFinishLoadingMap:` is called. + + During the animation, this method may be called many times to report updates + to the viewpoint. Therefore, your implementation of this method should be as + lightweight as possible to avoid affecting performance. @param mapView The map view whose viewpoint is changing. */ @@ -55,7 +57,9 @@ NS_ASSUME_NONNULL_BEGIN This method is called whenever the currently displayed map camera has finished changing, after any calls to `-mapViewRegionIsChanging:` due to animation. - + This method can be called before `-mapViewDidFinishLoadingMap:` is + called. + @param mapView The map view whose viewpoint has changed. @param animated Whether the change caused an animated effect on the map. */ |