Marker area lost focus.
This event is dispatched when the MarkerArea component loses focus.
Marker area focused.
This event is dispatched when the MarkerArea component receives focus.
Marker area initialized.
This event is dispatched early in the lifecycle when the MarkerArea component is initialized but none of its internal elements have been created yet.
Use areashow to know when the component is fully initialized and ready to be used.
Marker area state restored.
This event is dispatched when the MarkerArea component restores its state from a previously saved state.
Marker area shown.
This event is dispatched when the MarkerArea component is fully initialized and ready to be used.
Marker area state changed.
This event is dispatched when the MarkerArea component's state changes.
This is a good place to implement auto-saving or update the UI based on the current state.
Marker about to be deleted.
Marker changed.
Marker created.
This event is dispatched when a marker has been created. You can use this event to update the UI or perform actions based on the created marker editor.
One common use case is implementing continuous marker creation, where you create a new marker editor immediately after the previous one has been created.
Marker creating.
Marker deleted.
Marker deselected.
Marker selected.
Marker area custom event types.
Remarks
The
MarkerAreaEventMap
interface defines the events that can be dispatched by the MarkerArea component.You can listen to these events using the addEventListener method on the MarkerArea instance.
The events can be logically grouped into two categories:
area
)marker
).The marker area events are related to the overall state of the MarkerArea component, while the marker editor events are related to the individual marker editors within the area.
Marker area events receive MarkerAreaEventData as their
event.detail
, while marker editor events receive MarkerEditorEventData as theirevent.detail
. Both event data types contain a reference to the MarkerArea instance and, for marker editor events, a reference to the specific marker editor that triggered the event.