[map] Saving the map to a file.