Public Function GetSelectedLayers() As IReadOnlyList(Of Layer)
public IReadOnlyList<Layer> GetSelectedLayers()
Return Value
The collection of layers selected in the TOC.
Public Function GetSelectedLayers() As IReadOnlyList(Of Layer)
public IReadOnlyList<Layer> GetSelectedLayers()
{
//Zoom to the selected layers in the TOC
var selectedLayers = mapView.GetSelectedLayers();
mapView.ZoomToAsync(selectedLayers);
}
{
//Pan to the selected layers in the TOC
var selectedLayers = mapView.GetSelectedLayers();
mapView.PanToAsync(selectedLayers);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)