Since map constants can be inferred from map names, but not the other way around, create a mapping between map constants and map names and use that to find the connected map.