🚀
maplibreテスト用のhtmlファイル
index.html
<!DOCTYPE html>
<html lang="jp" style="width: 100%; height: 100%;">
<head>
<title>test</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet' href='https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.css' />
<script src='https://unpkg.com/maplibre-gl@5.13.0/dist/maplibre-gl.js'></script>
</head>
<body style="width: 100%; height: 100%; margin: 0;">
<div id="map" style="width: 100%; height: 100%;">
</div>
<script>
const map = new maplibregl.Map({
container: 'map',
style: 'https://raw.githubusercontent.com/gsi-cyberjapan/optimal_bvmap/52ba56f645334c979998b730477b2072c7418b94/style/std.json',
center: [139.50, 35.69],
zoom: 13
});
map.on('load', () => {
});
</script>
</body>
</html>
Discussion