/
githubmirror
/
Leaflet
Обзор
Документация
Войти
/
githubmirror
/
Leaflet
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
debug/tests/dist-esm.html
30 строк
732 B
Jon Koops
Add debug tests to verify various distributions (#10028)
25 дек 2025, 20:48
Не верифицирован
25 дек 2025, 20:48
b4b9dfb
Код
Авторство
О чём код?
<!doctype html> <html> <head> <meta charset="utf-8" /> <title>Leaflet debug page - ESM</title> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" /> <link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../css/screen.css" /> <script type="importmap"> { "imports": { "leaflet": "../../dist/leaflet-src.js" } } </script> </head> <body> <div id="map"></div> <script type="module"> import {LeafletMap, TileLayer} from 'leaflet'; const map = new LeafletMap('map', { center: [39.84, -96.591], zoom: 4, }); new TileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); </script> </body> </html>