Summary
In this chapter, you learned how to reference a project and map in an ArcGIS Pro Notebook by using the arcpy.mp
module. You also learned how to add, remove, and move layers to your maps with the arcpy.mp
module. You explored the different options to symbolize vector and raster data using the different renderer and colorizer classes available through the module. You learned what legend properties you can adjust by using the LegendElement
and LegendItem
classes. You also learned how to move the scale bar and north arrow, and change the text in a text element, by accessing them through the MapSurroundElement
class. You exported your layout to JPEG, PNG, and PDF using the export methods in the layout class. The example code you have seen can be applied to one map in a project, multiple maps in a project, or even multiple projects by adding loops to loop through all maps or projects. In Chapter 12, you will see more advanced examples using these skills.
It is important to remember...