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 toLayerPickerDialog.layerPicker.removeAll
.
Type Definitions
-
onAccept()
-
The function called when the dialog is accepted.