This control switches the visibility of a layer referenced by a Legato layerId.
| Legato. | This control switches the visibility of a layer referenced by a Legato layerId. |
| Functions | |
| activate | Invoked when the control is activated in toggle mode |
| deactivate | Invoked when the layer is deactivated in toggle mode |
| lc: | XML based config for a Legato.Control.ToggleLayer. |
| Configurable Properties | |
| layerId Legato layerId of the layer that will be | shown/hidden. |
XML based config for a Legato.Control.ToggleLayer.
<lc:ToggleLayer displayClass="ToggleScaleBarLayer"> <layerId>InternalLayer.ScaleBar</layerId> </lc:ToggleLayer>
Invoked when the control is activated in toggle mode
activate: function()
Invoked when the layer is deactivated in toggle mode
deactivate : function()