-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.html
55 lines (47 loc) · 2.59 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
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<title>Uber H3 Viewer</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="never">
<meta name="referrer" content="no-referrer">
<link rel="shortcut icon" type="image/png" href="./hex.png"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js" integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" crossorigin=""></script>
<script src="./h3.js"></script>
<link rel="stylesheet" href="style.css" type="text/css" media="all">
<script defer src="./map.js"></script>
</head>
<body>
<div id="app" class="fillScreen" v-cloak>
<div id="mapid" class="fillScreen"></div>
<div class="toolbox">
<form id="goto" v-on:submit.prevent="gotoLocation">
<div class="input-group has-validation">
<input type="text" class="form-control :invalid" v-model="gotoLatLon" placeholder="lat,lon" />
<div class="input-group-append">
<button type="submit" class="btn btn-primary">Go</button>
</div>
</div>
</form>
<br />
<form id="goto" v-on:submit.prevent="findH3">
<div class="input-group has-validation">
<input type="text" class="form-control :invalid" v-model="searchH3Id" placeholder="valid H3 id" />
<div class="input-group-append">
<button type="submit" class="btn btn-primary">Find</button>
</div>
</div>
</form>
<hr />
Current H3 resolution: <b>{{ currentH3Res }}</b>
<hr />
<small class="text-muted">Tip: Clicking an H3 cell will copy its id to the clipboard.</small>
</div>
</div>
</body>
</html>