ui/layers/panels/draw
The draw panel module exports the draw method.
Dictionary entries:
- layer_add_new_location
- Source
Requires
Methods
(inner) drawPanel(layer) → {HTMLElement}
The drawPanel method iterates over the layer.draw object and creates interface elements for each.
The interface elements are returned in a panel element.
Specifying layer.draw.drawer: false will prevent a drawer from being made for the drawing panel.
Parameters:
Properties| Name | Type | Description |
|---|---|---|
layer | layer |
| Name | Type | Attributes | Description |
|---|---|---|---|
layer.geom | string | The field to store draw geometries. | |
layer.draw | Object | The configuration for the layer draw methods. | |
draw.hidden | boolean | <optional> | The draw panel should not be created for the layer.view. |
draw.popout | boolean | <optional> | Whether the drawer can be popped out into a dialog. |
draw.classList | string | <optional> | The string will be appended to the drawer element classlist. |
- Source
Returns:
The draw panel drawer element.
- Type:
- HTMLElement