mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-08 08:29:23 +00:00
639 B
639 B
layout, title, customMapContainer
layout | title | customMapContainer |
---|---|---|
tutorial_frame | Basic Setup Example | true |
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: '© <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>