It's either amcl which is configured to hold the map file path that is published or a file such as move_base that connects all the map configuration parameters (such as global, local, costmaps etc) and launches both amcl with the mentioned map parameters that are required. Do you have a setup close to this?