replaceMap
Replaces the current TomTomMap
with a new one.
This method is useful for handling Android configuration changes. For example, you can use this method to provide the new TomTomMap
instance that's created when the device's screen is rotated (because a screen rotation causes the Activity/Fragment to be destroyed and reconstructed).
Parameters
tomtomMap
The new TomTomMap
that replaces the current one.