onSaveInstanceState

open override fun onSaveInstanceState(bundle: Bundle)

This handles the 'onSaveInstanceState' lifecycle event. It is called when the parent component saves its instance state. 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.