Can someone please help in figuring out 'Zoom to selection' based on Map, Using Layout Im able to achieve it through camera, but in map there are no methods for it, i tried this,
lyr = aprxmap.listLayers()[0]
lyt = aprx.listLayouts("Layout")[0]
mf = lyt.listElements("mapframe_element")[0]
ext = mf.getLayerExtent(lyr,True,True)
mf.camera.setExtent(ext)
mapView.panToExtent(ext)