onSaveInstanceState

open override fun onSaveInstanceState(outState: Bundle)

This handles the 'onSaveInstanceState' lifecycle event. It is called when the parent component saves its instance state. This stores the current state of the MapView component, ensuring that the state can be restored after a configuration change or other events that restart the component.