I need to activate a layer and its sub-layers when I open the "Near me" widget, because when the analysis is run, it generated the buffer but does not show the layer used for the analysis(Figure 1). I need these processes to improve user assistance. In this case, it shows the layer and the sublayer, but only when I have active a sublayer of this layer (Figure 2).
I need a code, since I am doing this in WAB for developers, editing the application code. Anyone know how to do this?
Figure 1:
Figure 2: