Module: toolbar-observation

Toolbar for observations (My locations).

Source:

Example

<ToolbarObservation />

Methods

(function) data()

Method data
Source:

(method) addAtCenter()

Adds a new observation at the center of the map (at crosshair position).

Source:

(method) addAtGPS()

Adds a new observation at the current GPS location.

Source:

(method) addAtMouse()

Adds a new observation at the mouse click position.

Source:

(method) addPoint(point)

Adds a point as a new observation location.

Parameters:
Name Type Description
point Object

The point to be added.

Source:

(method) addPolygonCrosshair()

Creates a new polygon.

Source:

(method) addPolygonMouse()

Adds a polygon.

Source:

(method) addVertex()

Adds a point to the polygon

Source:

(method) cancelPolygon()

Cancels the drawing of the polygon.

Source:

(method) del()

Deletes the current observation.

Source:

(method) endPolygon()

Ends the drawing process.

Source:

(method) undo()

Undoes the last edit on map.

Source:

(function) mounted()

Method mounted
Source:

(function) unmounted()

Method unmounted
Source:

(watcher) "parent.params"()

Method "parent.params"
Source: