-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (63 loc) · 1.48 KB
/
index.html
File metadata and controls
69 lines (63 loc) · 1.48 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>スタジアムマップ(選択連動型)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
html, body {
width: 100vw;
height: 100vh;
margin: 0; padding: 0;
overflow: hidden;
display: flex;
}
#sidebar {
width: 30%;
height: 100vh;
overflow-y: auto;
padding: 20px;
box-sizing: border-box;
border-right: 1px solid #ccc;
background: #f8f8f8;
}
#map {
flex-grow: 1;
height: 100vh;
min-width: 0;
min-height: 0;
background-color: #eee;
position: relative; /* 追加 */
z-index: 10; /* 追加 */
}
h1 {
font-size: 20px;
margin-bottom: 10px;
}
label {
display: block;
margin-bottom: 8px;
cursor: pointer;
}
input[type="checkbox"] {
margin-right: 8px;
vertical-align: middle;
}
</style>
<link
href="https://cdn.jsdelivr.net/npm/maplibre-gl@2.4.0/dist/maplibre-gl.css"
rel="stylesheet"
/>
</head>
<body>
<div id="sidebar">
<h1>行ったスタジアムを選択</h1>
<div id="stadiumList"></div>
</div>
<div id="map"></div>
<script src="https://cdn.jsdelivr.net/npm/maplibre-gl@2.4.0/dist/maplibre-gl.js"></script>
<script src="https://unpkg.com/papaparse@5.3.1/papaparse.min.js"></script>
<script src="map.js"></script>
<script src="app.js"></script>
</body>
</html>