LayerSwitch

.View.Controls. LayerSwitch

new LayerSwitch()

Source:
Creates a control for managing server side annotation layers

Methods

getCollapsed() → {boolean}

Source:
Gets the collapsed state of the control
Returns:
True if the control is currently collapsed
Type
boolean

setCollapsed(collapsed)

Source:
Sets the collapsed state of the control
Parameters:
Name Type Description
collapsed boolean True to collapse the control, otherwise false

showLayers(options)

Source:
Changes the visibility of the specified layers
Parameters:
Name Type Description
options Array.<Object> An array of options
Properties
Name Type Description
name string The name of the layer to change the visibility
visible boolean Whether to show or hide the specified layer