/ui/elements/drawing
- Source
Methods
(inner) circle(layer) → {HTMLElement}
Creates a button for circle a line on the map.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement
(inner) circle_2pt(layer) → {HTMLElement}
Creates a button for circle_2pt a line on the map.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement
(inner) createSlider()
Creates a slider for the circle radius, renders this slider into the rangeSlider div, and assigns a callback function to update the radius value.
- Source
(inner) drawOnclick(e, layer, interaction)
The drawOnClick method is triggered by clicking on a drawing element button.
The 'active' class is toggled on the button element. The drawing interaction is finished if the 'active' class is toggled off.
A callback method is assigned to the interaction before the interaction object is passed as argument to call the mapview's draw interaction.
Name | Type | Description |
---|---|---|
e | Object | The click event. |
layer | layer | Decorated Mapp Layer. |
interaction | Object | Mapview drawing interaction. |
Name | Type | Description |
---|---|---|
e.target | Object | The click event target [button]. |
- Source
(inner) line(layer) → {HTMLElement}
Creates a button for drawing a line on the map.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement
(inner) locator(layer) → {HTMLElement}
Creates a button for drawing a point at your current location.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement
(inner) point(layer) → {HTMLElement}
Creates a button for drawing a point on the map.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement
(inner) polygon(layer) → {HTMLElement}
Creates a button for drawing a polygon on the map.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement
(inner) rectangle(layer) → {HTMLElement}
Creates a button for rectangle a line on the map.
Name | Type | Description |
---|---|---|
layer | layer | Decorated MAPP Layer. |
- Source
The button element.
- Type:
- HTMLElement