Files
leaflet/docs/examples/quick-start/example-basic.md
chcederquist 9b89ab4eb5 Updated title and descriptions of docs (#9692)
Co-authored-by: Florian Bischof <design.falke@gmail.com>
2025-05-09 18:47:17 +02:00

639 B

layout, title, customMapContainer
layout title customMapContainer
tutorial_frame Basic Setup Example true
<script type="module"> import L, {Map, TileLayer} from 'leaflet';
const map = new Map('map').setView([51.505, -0.09], 13);

const tiles = new TileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
	maxZoom: 19,
	attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);

globalThis.L = L; // only for debugging in the developer console
globalThis.map = map; // only for debugging in the developer console

</script>