register Lifecycle Observer
Register the MapboxLifecycleObserver to observe lifecycle events from LifecycleOwner
Parameters
map View
the instance of mapView, will get the LifecycleOwner from mapview's parent
observer
observer listening to lifecycle events