ui/layers/panels/draw

The draw panel module exports the draw method.

Dictionary entries:

  • layer_add_new_location

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:
NameTypeDescription
layerlayer
Properties
NameTypeAttributesDescription
layer.geomstring

The field to store draw geometries.

layer.drawObject

The configuration for the layer draw methods.

draw.hiddenboolean<optional>

The draw panel should not be created for the layer.view.

draw.popoutboolean<optional>

Whether the drawer can be popped out into a dialog.

draw.classListstring<optional>

The string will be appended to the drawer element classlist.

Returns:

The draw panel drawer element.

Type: 
HTMLElement