Skip to Content
Notion UI

Markers

DOM markers with custom content, labels, tooltips, popups, and drag callbacks.

Map Markers

<MapMarker longitude={121.5654} latitude={25.033}>
  <MapMarkerContent />
</MapMarker>

Installation

pnpm add @notion-kit/map

API Reference

MapMarker

Creates a MapLibre DOM marker at a longitude and latitude, then provides marker context to marker children.

MapMarker extends MapLibre MarkerOptions, except element.

Prop

Type

MapMarkerContent

Renders marker content into the marker DOM element. When no children are provided, it renders the default dot marker.

MapMarkerPopup

Attaches a MapLibre popup to a MapMarker. The popup opens through MapLibre marker popup behavior and uses Notion Kit popover styling.

MapMarkerPopup extends MapLibre PopupOptions.

Prop

Type

MapMarkerTooltip

Shows tooltip content when the pointer enters the marker and removes it when the pointer leaves.

MapMarkerTooltip extends MapLibre PopupOptions, except closeButton and closeOnClick.

MapMarkerLabel

Positions a small text label above or below custom marker content.

Prop

Type

MapPopupClose

Renders the close button used by map popups. It is exported for custom popup compositions.

Prop

Type

On this page