2024-05-29 05:16:02 +00:00
|
|
|
import "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"; // window.L
|
|
|
|
|
|
|
|
var map = L.map('leaflet-map').setView([0, 0], 2);
|
|
|
|
|
|
|
|
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
|
|
maxZoom: 19,
|
|
|
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
|
|
}).addTo(map);
|