/mapview/interactions/draw

The module exports the draw interaction method which is bound to a mapview in the decorator method.

Methods

(inner) draw(params, mapview)

Defines the behaviour for a draw interaction performed on the map.

Parameters:
NameTypeDescription
paramsobject

The params object is spread into the interaction defaults.

mapviewmapview

The mapview object to which the interaction will be added.