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.
I was looking for similar, thought I'd post the answer here in case anyone else was looking.
You can use aprx.activeView.camera.getExtent()