In the transition from arcpy.mapping to arcpy.mp there doesn't seem to be a way to get the extent (in order to calculate the center) of the current map.The camera extent only applies to layouts and MapFrames.
Does anyone know how to get around this?
Something like
aprx=arcpy.mp.ArcGISProject("CURRENT")
mapView = aprx.listMaps()[0]
extent = mapView.extent
Is this possible in pro?
Solved! Go to Solution.
@ToyotaT18This should be the accepted answer as this solution works without saving the project and always grabs the current view of the map currently looked at.