Optional
options: {Optional
auto?: booleanspecify if control add some stuff auto
Optional
collapsed?: booleanspecify if control is collapsed (true) or not (false)
Optional
draggable?: booleanspecify if control is draggable (true) or not (false)
Optional
element?: HTMLElementspecify the DOM element to append the control
Optional
format?: stringspecify the format for export (default: "geojson")
Optional
icon?: stringspecify the icon for point entry (default: base64 encoded SVG)
Optional
render?: Functionspecify the render function
Optional
target?: stringspecify the target element to append the control
Optional
thematics?: any[]specify the list of thematics
{Boolean} specify if control add some stuff auto
{Boolean} specify if control is collapsed (true) or not (false)
{Object} raw data
Protected
disposedThe object has already been disposed.
{Boolean} specify if control is draggable (true) or not (false)
{Array} specify some events listener
Protected
listenerKey name.
Listener.
Type.
Listener.
Protected
applyProtected
Apply any properties from another object without triggering events.
The source object.
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
Event object.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Clean up.
Protected
disposeProtected
Extension point for disposable objects.
Returns true if widget is collapsed (minimized), false otherwise
collapsed - true if widget is collapsed
Get container
container
Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.
Type.
Listeners.
Get an object of all property names and values.
Object.
Optional
type: stringType. If not provided,
true
will be returned if this event target has any listeners.
Has listeners.
The object has properties.
Move to the next step in the reporting process. This method checks if there is a next step available.
This method is used to navigate to the next step in the reporting process. It retrieves the next step from the stepContainer array based on the current step index. If a next step exists (indicated by a valid index), it retrieves the action associated with the current step, clears its data, and disables it. The data from the current action is merged into the reporting data object.
Key name.
Old value.
Protected
onceProtected
onMove to the previous step in the reporting process. This method checks if there is a previous step available. If there is a previous step, it clears the current action's data and sets the step to the previous one.
This method is used to navigate back to the previous step in the reporting process. It retrieves the previous step from the stepContainer array based on the current step index. If a previous step exists (indicated by a valid index), it clears the current action's data and sets the step to the previous one. The current action's data is cleared to ensure that any unsaved changes are discarded. This method is typically called when the user wants to go back to the previous step in the reporting process, allowing them to review or modify their input before proceeding. It is useful for scenarios where users may need to correct or change their input before finalizing their report. If the current step does not have a previous step (indicated by prev being -1), the method does nothing, effectively preventing navigation to a non-existent step. This ensures that the reporting process remains linear and prevents users from navigating to steps that are not part of the defined workflow.
Key name.
Listener.
Type.
Listener.
Collapse or display widget main container
True to collapse widget, False to display it
Add ioc
instance
Add ioc
instance
Add ioc
instance
Add ioc
instance
Overwrite OpenLayers setMap method
Map.
Set the current step of the reporting process.
The step number to set.
This method sets the current step of the reporting process. It updates the visibility of the step containers, activates the corresponding IoC action, and updates the reporting title and footer display. It is typically called when the user navigates to a different step in the reporting process, such as moving from the input step to the form step or the send step.
This function is used to set a target element for the control. It has no
effect if it is called after the control has been added to the map (i.e.
after setMap
is called on the control). If no target
is set in the
options passed to the control constructor and if setTarget
is not called
then the control is added to the map's overlay container.
Target.
Protected
unProtected
Unlisten for a certain type of event.
Type.
Listener.
event triggered when the reporting panel is opened reporting:opened
This event is dispatched when the reporting panel is opened. It indicates that the reporting process has started and the user can begin inputting data. This event can be used to perform additional actions when the reporting panel is opened, such as initializing the input fields or updating the UI to reflect the reporting state.
event triggered at the end of the reporting process reporting:sending
options