/ui/elements/drawing

Methods

(inner) circle(layer) → {HTMLElement}

Creates a button for circle a line on the map.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

The button element.

Type: 
HTMLElement

(inner) circle_2pt(layer) → {HTMLElement}

Creates a button for circle_2pt a line on the map.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

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.

(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.

Parameters:
NameTypeDescription
eObject

The click event.

layerlayer

Decorated Mapp Layer.

interactionObject

Mapview drawing interaction.

Properties
NameTypeDescription
e.targetObject

The click event target [button].

(inner) line(layer) → {HTMLElement}

Creates a button for drawing a line on the map.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

The button element.

Type: 
HTMLElement

(inner) locator(layer) → {HTMLElement}

Creates a button for drawing a point at your current location.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

The button element.

Type: 
HTMLElement

(inner) point(layer) → {HTMLElement}

Creates a button for drawing a point on the map.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

The button element.

Type: 
HTMLElement

(inner) polygon(layer) → {HTMLElement}

Creates a button for drawing a polygon on the map.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

The button element.

Type: 
HTMLElement

(inner) rectangle(layer) → {HTMLElement}

Creates a button for rectangle a line on the map.

Parameters:
NameTypeDescription
layerlayer

Decorated MAPP Layer.

Returns:

The button element.

Type: 
HTMLElement