@ UiThread public void onDestroy ( ) { mapboxMap . removeOnMapClickListener ( mapClickResolver ) ; mapboxMap . removeOnMapLongClickListener ( mapClickResolver ) ; dragListeners . clear ( ) ; clickListeners . clear ( ) ; longClickListeners . clear ( ) ; }
Cleanup annotation manager used to clear listeners