onDestroy

open override fun onDestroy()

This handles the 'onDestroy' lifecycle event. It is called when the parent component is being destroyed. This ensures the internal map view components are properly shut down and resources are freed.