Namespace: annotation

geo.event. annotation

These events are triggered by the annotation layer.

Events

geo.event.annotation.add

Triggered when an annotation has been added.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that was added.

geo.event.annotation.add_before

Triggered when an annotation is about to be added.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that will be added.

geo.event.annotation.coordinates

Triggered when an annotation's coordinates have been updated.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that was altered.

geo.event.annotation.edit_action

Triggered when an action is performed on an annotation's edit handle.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that has an edit handle selected or unselected.

handle object

Information on the edit handle.

action boolean

The edit action, typically one of geo.event.actiondown, geo.event.actionmove, geo.event.actionup.

geo.event.annotation.mode

Triggered when the annotation mode is changed.

Type:
Properties:
Name Type Argument Description
mode string <nullable>

The new annotation mode. This is one of the values from geo.annotation.state.

oldMode string <nullable>

The annotation mode before this change. This is one of the values from geo.annotation.state.

geo.event.annotation.remove

Triggered when an annotation has been removed.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that was removed.

geo.event.annotation.select_edit_handle

Triggered when an annotation's edit handle is selected or released.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that has an edit handle selected or unselected.

handle object

Information on the edit handle.

enable boolean

Truthy if the handle was enabled, falsy if disabled.

geo.event.annotation.state

Triggered when an annotation's state changes.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that changed.

geo.event.annotation.update

Triggered when an annotation has been altered. This is currently only triggered when updating existing annotations via the geojson function.

Type:
Properties:
Name Type Description
annotation geo.annotation

The annotation that was altered.