To save the detour to the server, call the DetourEditor.save function:
Update the detour properties
To update the properties of the detour that are not related to the geometries (for example the title, description,
or any other property), call the DetourEditor.updateDetourProperties function and pass an object with the
properties to update:
DetourEditor
Demos
Description
The DetourEditor is responsible for creating and editing detours
To construct a new DetourEditor, you need to provide an OpenLayers map instance:
This will allow the user to create two types of lines:
closed_way_line
: The closed way linedetour_line
: The detour lineTo edit an existing detour, you can provide the uuid of the detour:
Create or update the detour to the server
To save the detour to the server, call the DetourEditor.save function:
Update the detour properties
To update the properties of the detour that are not related to the geometries (for example the title, description, or any other property), call the DetourEditor.updateDetourProperties function and pass an object with the properties to update: