Computes the properties (statistics) of a track, including total time, distance, ascent, descent, physical demand, time and distance for each stopover.
Delete the hiking from the server
Delete a line part by its index or the active part if no index is provided.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
Returns the uuid of the hiking. If the hiking is not saved yet, this function returns undefined.
Handle import of GPX and KML files
Load the hiking from the server.
Redo the last action
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptionsRemove a stopover from the stopover list
Reverse the track
Create or update the hiking to the server
Set the distance of a stopover in meters or reset it to the computed value (if undefined is passed)
Set the duration of a stopover in minutes or reset it to the computed value (if undefined is passed)
Set the features of a stopover
Change the name of a stopover
Set the type of the hiking. The type can be one of hiking, hiking_activity or hiking_proposition.
Undo the last action
Update the hiking properties.
The
addEventListener()method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.MDN Reference