Currently, arcpy.mp supports Spatial Map Series (MapSeries class) and Bookmark Map Series (BookmarkMapSeries class) but the third and final type of map series, Thematic Map Series, is not supported. For a layout that contains a Thematic Map Series, the Layout.mapSeries property returns None, as if the layout had no map series at all.
My suggestion is to a ThematicMapSeries class along with other functionality to interact with Thematic Map Series equivalent to the other two types.
My use case is that I have a python notebook to batch export layouts. It can handle layouts containing Spatial or Bookmark Map Series but since arcpy.mp is unaware of the existence of Thematic Map Series, layouts containing those have to be exported manually.
I am not the first to request this (For example see https://community.esri.com/t5/arcgis-pro-questions/exporting-thematic-map-series-with-arcpy-mp/m-p/1...) but as far as I can tell nobody has posted it to the ideas forum until now.
Thank you for your feedback. Thematic map series has been possible with arpcy.mp well before it was available in the UI. Its simply a matter of turning layers on and off. We made a sample available:
https://www.arcgis.com/home/item.html?id=eba53351ceb84b58b505dec5272e526c
- Note the sample needs to be updated because the web layers were taken offline but the toolboxes, code and readme are still good.
The UI uses a very similar technique where layers are organized into groups and groups are simply toggled to control layer visibility.
We do hope to support a thematic map series but it is not in the immediate future. Your kudos will help us prioritize.
Jeff - arcpy.mp team
Thank you for this. That script is partway there but it does not detect and make use of existing thematic map series defined from the UI. I could probably get the functionality we need through CIM but it will be a lot less elegant than just calling layout.mapSeries.export().
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.