-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (68 loc) · 1.63 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Bus visualiser Norway</title>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""
/>
<style>
body {
margin: 0;
padding: 0;
}
#map {
height: 100vh;
width: 100vw;
}
#search-form {
position: absolute;
top: 10px;
left: 48px;
z-index: 1000;
}
#search {
padding: 4px;
border-radius: 4px;
height: 32px;
}
#search-button {
padding-left: 8px;
padding-right: 8px;
border-radius: 4px;
height: 44px;
}
</style>
</head>
<body>
<div id="map"></div>
<form id="search-form">
<input
type="text"
name="search"
id="search"
placeholder="LineRef. Ex: SKY:Line:445"
value="SKY:Line:445"
/>
<button type="submit">Search</button>
</form>
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/L.Control.Locate.min.css"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/L.Control.Locate.min.js"
charset="utf-8"
></script>
<script src="markerRotation.js"></script>
<script src="main.js"></script>
</body>
</html>