---
title: "<ScriptLeafletTileLayer>"
description: "Adds an L.TileLayer to the nearest parent map. Nuxt Scripts does not choose a tile provider for you."
canonical_url: "https://scripts.nuxt.com/scripts/leaflet/api/tile-layer"
last_updated: "2026-08-11T04:27:02.139Z"
---

Adds an `L.TileLayer` to the nearest parent map. Nuxt Scripts does not choose a tile provider for you.

<script-types filter="ScriptLeafletTileLayer" script-key="leaflet">



</script-types>

Always follow the selected provider's terms and pass its required attribution through `options.attribution`.
