Controlling Layer Visibility
You control the visibility of a layer in a graphic by binding a signal to the Visibility property, or by using a JavaScript.
For more information, see the Layers Overview section.
To control the visibility of a layer:
- In Graphics Editor, in the Objects pane, select the layer that you want to control with a signal.
- Right-click, point to New, and then click Bind.
- In the Properties pane, under General, in the Name box, enter a layer name and add “.Value”.
- Right-click the Bind element and add two ConvertValue elements.
- For the first ConvertValue element, in the Properties pane, under Behavior, in the AtributeValue box, type Hidden.
- For the first ConvertValue element, in the Properties pane, under Behavior, in the SignalLessOrEqualTo box, enter “0”.
- For the second ConvertValue element, in the Properties pane, under Behavior, in the AtributeValue box, type Visible.
- For the second ConvertValue element, in the Properties pane, under Behavior, in the SignalMoreOrEqualTo box, enter “1”.
The visibility of the layer in the graphic can now be controlled by the signal values 0 and 1, bound to [Layer name].Value.