The position of the annotation.
The position can be either a Coordinates or a MapPoint.
Updating this value will affect the annotation on the screen.
The relative anchor point of the element in CSS pixels.
The anchor offset is applied additionally to the anchor.
Updating this value will affect the annotation on the screen.
Creates an annotation with the provided options.
The options to apply to the new annotation.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptions
A single annotation.
Fires
Annotation#click - Fired when the user clicks on the annotation.