The Set Layer Visibility activity sets the visibility of a layer in the currently selected map.
Layer Id |
Required The ID of the layer in the currently selected map whose visibility is of interest. If the workflow will run in VertiGIS Studio Web, VertiGIS Studio Mobile, or Web AppBuilder, you can either set Layer Id to the ID from the layer object or to the layer name from the web map. If the workflow will run in the Geocortex Viewer for HTML5, set Layer Id to the map service ID if the service only has one layer. If the service has more than one layer, also set Sublayer Id to the layer ID. Get the map service ID and layer ID from Geocortex Essentials Manager or from the Geocortex Essentials Sites Directory. |
Sublayer Id |
Optional The optional index of the sublayer whose definition is of interest. |
Visible |
Required Type: Boolean The visibility to set on the layer. |
wasVisible |
Type: Boolean Whether the layer was originally visible. |
nowVisible |
Type: Boolean Whether the layer was visible at the time of completing the activity. |
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
This activity works when the device has intermittent connectivity to the network.
Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4.