Hi,
In localization mode, only the latest map (and all maps linked to it) will be published. When you switch to mapping mode, a new map is created. A loop closure may not be detected, so what you are seeing is the new map, with the old map disappearing. We can set the following parameter to true to make sure we have a loop closure before going in unknown areas:
Param: Rtabmap/StartNewMapOnLoopClosure = "false" [Start a new map only if there is a global loop closure with a previous map.]
When loop closures are added between maps, the DatabaseViewer will show the maps merged together in GraphView.
cheers,
Mathieu