new LayerSwitcherEvent(type, tool, layerIndex, layerPath, layerName, ruleIndex, expanded)
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
type |
string | Event type. |
|
tool |
Mapspace.ToolNames |
<nullable> |
The button that was clicked or null if no button was clicked. |
layerIndex |
number | Index of the layer in the list that was selected when the click was done. |
|
layerPath |
string |
<nullable> |
Path of layer group if event is in a layer group. |
layerName |
string |
<nullable> |
Name of sublayer if event is in a sublayer of a layer group. |
ruleIndex |
number |
<nullable> |
Index of rule if event is in a style rule of a layer. |
expanded |
boolean |
<nullable> |
Expanded property of layer group or layer. |
- Source:
- mapspace/events.js
Extends
Members
-
<nullable> expanded :booelan
-
Expanded property of layer group or layer.
- Source:
- mapspace/events.js
-
layerIndex :number
-
The index of the layer.
- Source:
- mapspace/events.js
-
<nullable> layerName :string
-
Name of sublayer if event is in a sublayer of a layer group.
- Source:
- mapspace/events.js
-
<nullable> layerPath :string
-
Path of layer group if event is in a layer group.
- Source:
- mapspace/events.js
-
<nullable> ruleIndex :number
-
Index of rule if event is in a style rule of a layer.
- Source:
- mapspace/events.js
-
<nullable> tool :Mapspace.ToolNames
-
The button that was clicked, if the event was a click in a button.
- Source:
- mapspace/events.js