The Reporting control is a custom OpenLayers control that allows users to report issues or provide
feedback on the map. It provides a user interface for inputting details about the report, including
the location, description, and thematic category of the issue.
Example
import Reporting from "gpf-ext-ol/controls/Reporting"
ou
import { Reporting } from "gpf-ext-ol"
Events
-
reporting:opened
Controls/Reporting/Reporting.js, line 1234 -
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. -
reporting:sending
Controls/Reporting/Reporting.js, line 1380 -
This event is dispatched when the reporting data is successfully sent.
It contains the reporting data that was sent.
This event can be used to perform additional actions after the reporting data is sent,
such as updating the UI or notifying other components.