---
title: "<ScriptMapLibrePopup> · Nuxt Scripts"
description: "Renders slotted HTML in a MapLibre Popup. Nest it inside a marker, or pass position for a standalone popup. Use the reactive open prop to control visibility."
canonical_url: "https://scripts.nuxt.com/scripts/maplibre/api/popup"
meta:
  "og:description": "Renders slotted HTML in a MapLibre Popup. Nest it inside a marker, or pass position for a standalone popup. Use the reactive open prop to control visibility."
  "og:image": "https://scripts.nuxt.com/_og/s/o_04c5e92a0401ba60.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "<ScriptMapLibrePopup> · Nuxt Scripts"
  "twitter:image": "https://scripts.nuxt.com/_og/s/o_04c5e92a0401ba60.png"
---

> Index of every page on this site: [llms.txt](https://scripts.nuxt.com/llms.txt)

**Api**

# **\<ScriptMapLibrePopup>**

[Copy for LLMs](https://scripts.nuxt.com/scripts/maplibre/api/popup.md)

Renders slotted HTML in a MapLibre `**Popup**`. Nest it inside a marker, or pass `**position**` for a standalone popup. Use the reactive `**open**` prop to control visibility.

`**new maplibregl.Popup()**` reads the `**options**` object at creation time. Options backed by MapLibre public setters also update reactively: `**className**`, `**maxWidth**`, `**offset**`, `**padding**`, and `**subpixelPositioning**`. Other options are initialization-only.

`**position**``MapLibre.LngLatLike`

`**open**``boolean`

`**options**``MapLibre.PopupOptions`

[Edit this page](https://github.com/nuxt/scripts/edit/main/docs/content/maplibre/2.api/3.popup.md)

[Markdown For LLMs](https://scripts.nuxt.com/scripts/maplibre/api/popup.md)

[**\<ScriptMapLibreMarker>** Adds a reactive MapLibre Marker. Supply a unique aria-label so its generated DOM element has a useful accessible name.](https://scripts.nuxt.com/scripts/maplibre/api/marker) [**\<ScriptMapLibreNavigationControl>** Adds MapLibre's navigation control to the nearest parent map. Use options to choose whether zoom, compass, and pitch visualization controls are shown.](https://scripts.nuxt.com/scripts/maplibre/api/navigation-control)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scripts.nuxt.com/#website","@type":"WebSite","description":"Nuxt Scripts lets you load third-party scripts with better performance, privacy, security and DX. It includes many popular third-parties out of the box.","name":"Nuxt Scripts","url":"https://scripts.nuxt.com/","publisher":{"@id":"https://scripts.nuxt.com/#identity"}},{"@id":"https://scripts.nuxt.com/scripts/maplibre/api/popup#webpage","@type":"WebPage","description":"Renders slotted HTML in a MapLibre Popup. Nest it inside a marker, or pass position for a standalone popup. Use the reactive open prop to control visibility.","name":"<ScriptMapLibrePopup>","url":"https://scripts.nuxt.com/scripts/maplibre/api/popup","breadcrumb":{"@id":"https://scripts.nuxt.com/scripts/maplibre/api/popup#breadcrumb"},"isPartOf":{"@id":"https://scripts.nuxt.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://scripts.nuxt.com/scripts/maplibre/api/popup"]}],"primaryImageOfPage":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/#identity","@type":"Organization","name":"Nuxt Scripts","url":"https://scripts.nuxt.com","logo":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/scripts/maplibre/api/popup#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Nuxt Scripts","item":"https://scripts.nuxt.com/","position":1},{"@type":"ListItem","name":"Scripts","item":"https://scripts.nuxt.com/scripts","position":2},{"@type":"ListItem","name":"Maplibre","item":"https://scripts.nuxt.com/scripts/maplibre","position":3},{"@type":"ListItem","name":"API","item":"https://scripts.nuxt.com/scripts/maplibre/api","position":4},{"@type":"ListItem","name":"<ScriptMapLibrePopup>","item":"https://scripts.nuxt.com/scripts/maplibre/api/popup","position":5}]},{"@id":"https://scripts.nuxt.com/#logo","@type":"ImageObject","caption":"Nuxt Scripts","contentUrl":"https://scripts.nuxt.com/logo.svg","inLanguage":"en","url":"https://scripts.nuxt.com/logo.svg"}]}
```

## Sitemap

See the full [sitemap](https://scripts.nuxt.com/sitemap.md) for all pages.
