<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>皇居マップ(完全版)</title>
<!-- Leaflet CSS -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css"
/>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#map {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<!-- 地図本体 -->
<div id="map"></div>
<!-- Leaflet JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.js"></script>
<script>
// 皇居周辺を中心に表示
const map = L.map('map').setView([35.685175, 139.7528], 15);
// OSMタイルレイヤー(無料)
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors',
maxZoom: 19
}).addTo(map);
// 皇居中央にマーカー
L.marker([35.685175, 139.7528])
.addTo(map)
.bindPopup("皇居").openPopup();
</script>
</body>
</html>