Select to view content in your preferred language

What is event to subscribe to in ArcPro SDK for when all Layers on the active map is loaded

179
1
Jump to solution
05-30-2024 01:13 PM
Gurunara
Occasional Contributor

What is event to subscribe to in ArcPro SDK for when all Layers on the active map is loaded?
I.e. not new layers being added to the map, but when starting ArcPro, when the layers that had been added prior to closing is "loaded". Is there such event(s)?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Gurunara
Occasional Contributor

Decided to use:

ActiveMapViewChangedEvent.Subscribe(args =>
{

// here check for the MapView.Active?.Map.GetLayersAsFlattenedList()
.OfType<FeatureLayer>().ToList() to verify layers of interest are loaded
});

View solution in original post

0 Kudos
1 Reply
Gurunara
Occasional Contributor

Decided to use:

ActiveMapViewChangedEvent.Subscribe(args =>
{

// here check for the MapView.Active?.Map.GetLayersAsFlattenedList()
.OfType<FeatureLayer>().ToList() to verify layers of interest are loaded
});

0 Kudos