Referencing projects and maps within projects
The arcpy.mp
module can assist you in automating mapping tasks, but it does not remove the need for creating a map in ArcGIS Pro. You will still want to create your maps in ArcGIS Pro, but once created, arcpy.mp
can be used to automate tasks such as adding, removing, and styling layers, and exporting maps across maps and projects.
ArcGIS Pro projects are stored as .aprx
files. The .aprx
file contains any maps with their associated layers, and any layouts with their associated layout elements. In this section, you will be starting with a project that contains two maps and a layout.
- Open up ArcGIS Pro, navigate to where you unzipped the
Chapter7.zip
folder, and open upChapter7.aprx
. You will see two maps in the project,Map
andMap1
. - The first map,
Map
, contains the Oakland Vegetation from CalFire (OaklandFVeg
), AC Transit Routes (Summer21RouteShape
), and AC Transit Stops (UniqueStops_Summer21
) from Chapter 2, and Alameda...