I am attempting to export a series of 200 individual PDF maps using the Map Series Export to Multiple PDFs option in ArcGIS Pro 2.5.0. The layout contains two map frames with different base maps that show the same index feature but at different scales.
Frame A is fixed at a 1:5000 scale and contains the index layer used to define the map series and frame B is set to a 1:40000 scale. The extent for frame B is set using a map frame constraint that links frame B to frame A and the index layer using a linked map frame center and a margin set to achieve the 1:40000 desired scale for frame B.
When attempting to export the map series to individual PDFs, the extents are maintained for the first 2-20 exported maps and then at some point the extent for frame B changes to a different value for the rest of the maps. I have tried running the export from the Share -> Export Layout toolbar and using basic arcpy scripting within a Jupyter notebook and have the same issue with both methods.
How can I get the exported map series PDFs to maintain the fixed extents for each map frame?
My question is similar to Multiple Map Frame for Map Series , but I would like to be able to have fixed extents in both map frames that are centered on each index feature.
As an FYI Here's the arcypy code I'm using to export the map series:
p = arcpy.mp.ArcGISProject("CURRENT")
l = p.listLayouts("Prelim")[0]
if not l.mapSeries is None:
ms = l.mapSeries
if ms.enabled:
for pageNum in range(1, ms.pageCount + 1):
ms.currentPageNumber = pageNum
print("Exporting {0}".format(ms.pageRow.FieldID))
pageName = ms.pageRow.FieldID
l.exportToPDF(os.path.join(exportDirectory, f"Prelim_{ms.pageRow.FieldID}.pdf"))