onDestroy

open fun onDestroy()

Called to ensure the MapView is destroyedproperly.

In an Activity this should be in onDestroy().

In a androidx.fragment.app.Fragment, this shouldbe in onDestroyView.