LayerPickerDialog()

For use with DuAEF.DuScriptUI.
A picker for layers with labels.
This is not a real class, and cannot be instanciated.
Use DuAEF.DuScriptUI.createLayerPicker to create a picker.
The picker inherits the Group object from ScriptUI and has all of its properties and methods.

new LayerPickerDialog()

Properties:
Name Type Description
layerPicker LayerPicker The layer picker inside the dialog.
accepted bool This property is true if the user has clicked the OK button, false otherwise.

Methods

static addSelector() → {LayerSelector}

Adds a new line on the LayerPicker This is a convenience function equivalent to LayerPickerDialog.layerPicker.addSelector.
Returns:
LayerSelector - The added LayerSelector

static getLayers() → {Array.<Layer>}

Gets the layers picked by the user.
Returns:
Array.<Layer> - The layers picked (null if the user has set none in the selector), in the display order.

static getLayers() → {Array.<Layer>}

Gets the layers picked by the user.
Returns:
Array.<Layer> - The layers picked (null if the user has set none in the selector), in the display order.

static removeAll()

Empties the LayerPicker
This is a convenience function equivalent to LayerPickerDialog.layerPicker.removeAll.

Type Definitions

onAccept()

The function called when the dialog is accepted.