Make layer visible in map
I am working on a work flow in Work Flow 5.17 and trying turn on a layer from the map. Is it possible to do this with Work Flow?
-
Have you seen the Set Layer Visibility activity?
0 -
I am using the Get Layer with the
Layer ID = https://<SERVER>/server/rest/services/ThurstonInt/emap_standard/MapServer
Sublayer ID = 49
Then in the Set Layer Visibility I am setting $layer1.layer, $layer1.sublayer and true.
I get the labels for the layer but not the layer symbology.
0 -
There's some pretty good documentation on activities, click on ⋮ and then Help with this activity to open it
What you have for Layer ID is not a layer ID, it is the layer's service URL. Get Layer uses either the layer name as input, or the layer ID from the webmap.
Set Layer Visibility also takes either the name or ID of the layer as input, so you can use the same value as the one used in Get Layer (or, if you wish, =$layer1.layer.id)
Sublayer is only used in the HTML viewer, so if you're not using that you can ignore it.
0 -
What is the purpose of this URL?
0 -
Here is an article to get a layer ID and Sub ID. I found it in the app.json file after downloading the app from Studio Web.
1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer