I build automation tools for my team. Most of them are written in python and some are written using ArcPy. I have a tool that does many things, but one of them is to create a map called "MyMap" if it doesn't exist or to close "MyMap" if it exist and is open, add some data to "MyMap" and open/reopen it for the user.
Currently my tool uses "aprx.closeViews("MAPS")" but of course that closes all the open map views. I want to be able to close a single specific map with my tool.
For context: The closeViews() method is part of the ArcGISProject class and the openView() method is part of the Map class. The closeViews() closes all open views as specified e.g. closeViews("MAPS"). The openView() opens a specific map openView("MyMapName").
I am proposing a new ArcPy method such as "closeView("MyMapName").
Of course there are work arounds, but a simple call to close a single map by name would be much simpler.