Hi
I have a recursive function that goes through a nested hierarchy of layers and loads them into a map.
When the code hits line 3 - it can take a long time for the layer to be actually created in the map (bearing in mind this is coming over the wire from ArcGIS Online storage).
Is there a quicker way to load layers? I was thinking of trying to do something with a Task.WaitAll() kind of approach but I'm not sure that's going to work if its recursive and also I think it will mess up index order for layers that need to go in a certain order in a group node.
l
if (LayerFactory.Instance.CanCreateLayerFrom(currentItem))
{
FeatureLayer featureLayer = LayerFactory.Instance.CreateLayer<FeatureLayer>
(layerParam, groupLayer);
}
asdf