new LayerSwitcherAddEvent(layerindex, sourceDefinition)
Parameters:
Name | Type | Description |
---|---|---|
layerindex |
number | Index of the layer in the list that was selected when the click was done. |
sourceDefinition |
Mapspace.source.SourceDefinition | Source definition for the layer to add. |
- Source:
- mapspace/events.js
Extends
Members
-
<nullable> expanded :booelan
-
Expanded property of layer group or layer.
- Inherited From:
- Source:
- mapspace/events.js
-
layerIndex :number
-
The index of the layer.
- Inherited From:
- Source:
- mapspace/events.js
-
<nullable> layerName :string
-
Name of sublayer if event is in a sublayer of a layer group.
- Inherited From:
- Source:
- mapspace/events.js
-
<nullable> layerPath :string
-
Path of layer group if event is in a layer group.
- Inherited From:
- Source:
- mapspace/events.js
-
<nullable> ruleIndex :number
-
Index of rule if event is in a style rule of a layer.
- Inherited From:
- Source:
- mapspace/events.js
-
sourceDefinition :Mapspace.source.SourceDefinition
-
The Source definition for the layer to add.
- Source:
- mapspace/events.js
-
<nullable> tool :Mapspace.ToolNames
-
The button that was clicked, if the event was a click in a button.
- Inherited From:
- Source:
- mapspace/events.js