Toolbar for observations (My locations).
Example
<ToolbarObservation />
Methods
(function) data()
Method data
(method) addAtCenter()
Adds a new observation at the center of the map (at crosshair position).
(method) addAtGPS()
Adds a new observation at the current GPS location.
(method) addAtMouse()
Adds a new observation at the mouse click position.
(method) addPoint(point)
Adds a point as a new observation location.
Parameters:
Name | Type | Description |
---|---|---|
point |
Object | The point to be added. |
(method) addPolygonCrosshair()
Creates a new polygon.
(method) addPolygonMouse()
Adds a polygon.
(method) addVertex()
Adds a point to the polygon
(method) cancelPolygon()
Cancels the drawing of the polygon.
(method) del()
Deletes the current observation.
(method) endPolygon()
Ends the drawing process.
(method) undo()
Undoes the last edit on map.
(function) mounted()
Method mounted
(function) unmounted()
Method unmounted
(watcher) "parent.params"()
Method "parent.params"