How do you automatically turn on multiple Feature Layers (Feature Services) when you click on the Edit Widget?
I did this with the Time Aware Widget but I can not figure out how to do it with the Edit Widget
What have you tried so far?
It should be as simple as:
define([ 'jimu/LayerInfos/LayerInfos',....],function( LayerInfos,....var operLayerInfos = LayerInfos.getInstanceSync();var lyr = operLayerInfos.getLayerInfoById("your layer id");lyr.setTopLayerVisible(true);
Thank You again! It is only 9 degrees in Ohio today but my brain is still cooking.
I added the code for others to see. I hope this is a good way to do it.
Retrieving data ...