Skip to content

Commit

Permalink
Additional documentation about onMapMoved callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mtehver committed Jul 20, 2021
1 parent 440cf10 commit 953a6bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions all/native/ui/MapEventListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ namespace carto {
/**
* Listener method that gets called when the map is panned, rotated, tilted or zoomed.
* The callback is used for both UI events and map changes resulting from API calls.
* It is recommended to use onMapInteraction callback instead of onMapMoved, if possible.
* Doing any calls to update MapView state from this method is potentially dangerous and may
* result in deadlocks or crashes.
* The thread this method is called from may vary.
*/
virtual void onMapMoved() { }
Expand Down

0 comments on commit 953a6bd

Please sign in to comment.