-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (116 loc) · 3.31 KB
/
index.html
File metadata and controls
129 lines (116 loc) · 3.31 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MaplatTin v3 Visualization</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", Arial, sans-serif; background: #eef0f4; color: #222; }
header {
background: #1a2744;
color: #fff;
padding: 10px 20px;
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
header h1 { font-size: 15px; white-space: nowrap; }
.ctrl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
label { font-size: 13px; }
select {
padding: 4px 8px;
border-radius: 4px;
border: none;
font-size: 13px;
min-width: 200px;
}
.btn-group { display: flex; gap: 3px; }
.ver-btn, .viz-tab {
padding: 5px 13px;
border: 1.5px solid rgba(255,255,255,0.3);
border-radius: 4px;
background: transparent;
color: #fff;
font-size: 12px;
cursor: pointer;
transition: background 0.15s;
}
.ver-btn:hover, .viz-tab:hover { background: rgba(255,255,255,0.12); }
.ver-btn.active { background: #c0392b; border-color: #c0392b; }
.viz-tab.active { background: #3a7bd5; border-color: #3a7bd5; }
.divider {
width: 1px; height: 22px;
background: rgba(255,255,255,0.2);
align-self: center;
}
#status {
font-size: 12px;
color: #aac;
white-space: nowrap;
margin-left: auto;
}
#map-note {
font-size: 11px;
color: #f39c12;
padding: 2px 20px;
background: rgba(243,156,18,0.1);
min-height: 20px;
}
.panels {
display: flex;
gap: 12px;
padding: 10px 16px;
justify-content: center;
flex-wrap: wrap;
}
.panel {
background: #fff;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
overflow: hidden;
}
canvas { display: block; }
#legend {
background: #fff;
margin: 0 16px 12px;
padding: 8px 14px;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
font-size: 12px;
line-height: 1.8;
}
</style>
</head>
<body>
<header>
<h1>MaplatTin v3 Visualization</h1>
<div class="ctrl-row">
<label>
テストケース:
<select id="map-select"></select>
</label>
<div class="divider"></div>
<div class="btn-group">
<button class="ver-btn" data-ver="v2">v2</button>
<button class="ver-btn active" data-ver="v3">v3</button>
</div>
<div class="divider"></div>
<div class="btn-group">
<button class="viz-tab active" data-viz="rays">無限遠半直線</button>
<button class="viz-tab" data-viz="grid">グリッド変換</button>
<button class="viz-tab" data-viz="roundtrip">ラウンドトリップ誤差</button>
</div>
</div>
<span id="status">初期化中…</span>
</header>
<div id="map-note"></div>
<div class="panels">
<div class="panel"><canvas id="canvas-forw"></canvas></div>
<div class="panel"><canvas id="canvas-bakw"></canvas></div>
</div>
<div id="legend">凡例を読み込み中...</div>
<script type="module" src="./demo/demo.ts"></script>
</body>
</html>