-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (44 loc) · 1.89 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
<!-- ページのタイトルを設定 -->
<title>地理院地図Vector及び最適化ベクトルタイル</title>
<!-- 文字エンコーディングをUTF-8に設定 -->
<meta charset="UTF-8">
<!-- ビューポートの設定。レスポンシブ対応のため -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- MapLibre GL JSのスクリプトを読み込む -->
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js" crossorigin="anonymous"></script>
<!-- MapLibre GL JSのスタイルシートを読み込む -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" crossorigin="anonymous">
<!-- PMTilesのスクリプトを読み込む -->
<script src="https://unpkg.com/[email protected]/dist/pmtiles.js"></script>
<!-- 外部スタイルシートを読み込む -->
<link href="style.css" rel="stylesheet" />
</head>
<body>
<!-- 地図表示用のdiv要素 -->
<div id="map"></div>
<div id="panel">
<details>
<summary class="layer">
<strong>ベースマップ切り替え</strong>
</summary>
<fieldset>
<div class="radio-button-container">
<div>
<input type="radio" id="chiriin" name="layer" value="chiriin" checked>
<label for="chiriin">地理院タイル(標準地図)</label><br>
<input type="radio" id="experimental" name="layer" value="experimental">
<label for="experimental">地理院地図Vector(標準地図風)</label><br>
<input type="radio" id="optimal" name="layer" value="optimal">
<label for="optimal">最適化ベクトルタイル(標準地図風)</label>
</div>
</div>
</fieldset>
</details>
</div>
<!-- メインのJavaScriptファイルを読み込む -->
<script src="main.js"></script>
</script>
</body>
</html>