/ui/elements/drawing

Dictionary entries:

  • draw_dialog_title
  • draw_dialog_begin_drawing
  • draw_dialog_cancel_drawing
  • draw_dialog_remove_vertex
  • draw_dialog_save
  • draw_dialog_save_single
  • draw_point
  • draw_position
  • draw_polygon
  • draw_rectangle
  • circle_config
  • draw_circle
  • draw_circle_2pt
  • radius
  • units
  • draw_line
  • create

Requires

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