Instance Property

displayPriority

A numeric hint the map uses to prioritize displaying annotations.

Declaration

attribute Number displayPriority;

Discussion

Maps use the display priority as a hint to decide whether to display annotations at any given time. By default, the display priority is mapkit.Annotation.DisplayPriority.Required, indicating the annotation will always be displayed on the map.

Display priority can be any number from 0 to 1000. There are three preset values defined:

See Also

Getting and Setting Annotation Appearance

anchorOffset

An offset that changes the annotation's default anchor point.

appearanceAnimation

A CSS animation that runs when the annotation appears on the map.

mapkit.Annotation.DisplayPriority

Constant values used to provide a hint the map uses to prioritize displaying annotations.

padding

Spacing added around the annotation when showing items.

size

The desired dimensions of the annotation, in CSS pixels.

visible

A Boolean value that determines if the annotation is visible or hidden.