Merges the maps.