Turning of more than just 1 layer
I would like to turn off multiple sublayers using set layer visibility. Is this possible? Now i have in my workflow multiple set layer visibility were one would look alot cleaner and easier to use.
Example layer id always 20 but i want to turn off sublayer 1,2,3,4,5,6,7.
0
-
Which viewer are you targeting?
0 -
Geocortex viewer for HTML5
0 -
I recommend using a ForEach, personally I'd start with an object structured like
{ layerId1: [sublayerId1, sublayerId2], layerId2: [sublayerId3] … }
iterate that will give you each layer (layer1: [sub1, sub2]) then nest a forEach to run Set Visibility on the sublayers.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer