mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

State of injected `NavigationMapView` should be reverted to the original one after finishing active navigation.

Open MaximAlien opened this issue 3 years ago • 2 comments

While injecting NavigationMapView to the NavigationViewController several of its properties will be irrevocably modified. It'll lead to undefined behavior while invoking camera updates, calling delegate methods etc.

In scope of this ticket state saving mechanism should be implemented, which allows to revert back to original state of NavigationMapView (the one which was used prior to injection).

MaximAlien avatar Nov 09 '21 18:11 MaximAlien

It'd be good to have an object cloning mechanism, which allows to clone NavigationMapView, MapView and internal object. Will create a ticket on Maps SDK side to discuss this possibility.

MaximAlien avatar Dec 13 '21 18:12 MaximAlien

Ticket was created here: ~~https://github.com/mapbox/mapbox-maps-ios-internal/issues/1055~~ ~~mapbox/mapbox-maps-internal#1006~~ mapbox/mapbox-maps-internal#732.

MaximAlien avatar Jan 18 '22 18:01 MaximAlien