iterate through feature layers and set visibility
Hi,
I expect this is quite easy but I seem to be missing the obvious. I just want a workflow that iterates through the feature layers and sets their visibility property (this will be hard coded for now - e.g. only layers 3,11 and 14 from the map service will be turned on).
I'm trying to use a CreateCollection of type CreateCollection<ICollection<FeatureLayer>>, then add to the collection with a ForEach (feature layer) >Add to Collection and then iterate through the collection with a ForEach>feature in FeatureLayer Collection > Set Layer Visibility.
My problem is I can't figure out how to iterate through the feature layers in order to add them to the collection - any thoughts?
Thanks,
James
0
Please sign in to leave a comment.
Comments
0 comments