---
title: "<ScriptMapLibreMarker>"
description: "Adds a reactive MapLibre Marker. Supply a unique aria-label so its generated DOM element has a useful accessible name."
canonical_url: "https://scripts.nuxt.com/scripts/maplibre/api/marker"
last_updated: "2026-08-11T04:27:01.835Z"
---

Adds a reactive MapLibre `Marker`. Supply a unique `aria-label` so its generated DOM element has a useful accessible name.

<script-types filter="ScriptMapLibreMarker" script-key="maplibre">



</script-types>

Nest a [`<ScriptMapLibrePopup>`](/scripts/maplibre/api/popup) in the default slot to bind it to the marker. Use `options.draggable` and the drag events for an editable marker.

Marker options with public setters update reactively, including class names, dragging, rotation and pitch alignment, offset, opacity, and subpixel positioning. MapLibre reads constructor-only options such as `element`, `anchor`, `color`, and `scale` when it creates the marker.
