When you press a certain button in a location with box collision, you need to display an image of the map of this place

I’m making a map with multiple locations. I need that when entering a certain location, when pressing the “M” button, a map of that location is displayed.