For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias MarkerCollisionOptions

Per-map configuration of the marker collision engine.

type MarkerCollisionOptions = {
    accuracy?: MarkerCollisionAccuracy;
    behaviour?: CollisionBehaviour;
    proximityPadding?: number;
    transitionDuration?: number;
    transitionEasing?: string;
}
Index

Properties

Collision box accuracy for rotated markers. Defaults to high.

behaviour?: CollisionBehaviour

Default collision behaviour for every marker on the map. A marker's own collisionBehaviour option overrides it. Defaults to always-show (nothing is ever hidden until a behaviour is opted into).

proximityPadding?: number

Distance in CSS px within which two markers count as "in proximity". Overlap always uses 0.

transitionDuration?: number

Duration in milliseconds of the hide/show/minimize fade transition markers go through under collision behaviours. Defaults to 150.

transitionEasing?: string

CSS easing function for the fade transition (e.g. "ease", "ease-in-out", "linear", or a cubic-bezier(...) expression). Defaults to "ease".

Was this helpful?