-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
169 lines (161 loc) · 4.93 KB
/
map.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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<title>WW1 Veterans</title>
<link rel="icon" href="./img/hat.png">
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js"
integrity="sha512-2rNj2KJ+D8s1ceNasTIex6z4HWyOnEYLVC3FigGOmyQCZc2eBXKgOxQmo3oKLHyfcj53uz4QMsRCWNbLd32Q1g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI="
crossorigin=""
/>
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM="
crossorigin=""
></script>
<script
src="https://code.jquery.com/jquery-3.6.3.min.js"
integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU="
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js"
integrity="sha512-2rNj2KJ+D8s1ceNasTIex6z4HWyOnEYLVC3FigGOmyQCZc2eBXKgOxQmo3oKLHyfcj53uz4QMsRCWNbLd32Q1g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"
></script>
<script src="./js/turf.min.js" charset="utf-8"></script>
<script src="./js/map.js"></script>
<link rel="stylesheet" href="./css/global.css" />
<link rel="stylesheet" href="./css/map.css" />
</head>
<body>
<!-- Responsive navbar-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<div class="container px-5">
<a class="navbar-brand" href="index.html">WW1 Veterans</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="moreInfo.html">More Info</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdownSearch"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
Search
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownSearch">
<li><a class="dropdown-item" href="map.html">Map</a></li>
<li>
<a class="dropdown-item" href="detailedSearch.html"
>Detailed</a
>
</li>
<li><a class="dropdown-item" href="bodyModel.html">Body</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container" id="pageInfo" style="padding-top: 5%">
<h2 class="section-heading">Geographical Spread</h2>
<p>
Here you can use the map to see the geographical spread of the data. You
can use the circle or polygon tool to draw a shape on the map. The map
will then show you the number of veterans that are within that shape.
You can also use the slider to change the radius of the circle.
</p>
</div>
<div class="containerForMap">
<div class="mapContainer">
<div id="map"></div>
</div>
<div class="optionsDiv">
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="flexRadioDefault"
id="flexRadioDefault1"
/>
<label class="form-check-label" for="flexRadioDefault1">Circle</label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="flexRadioDefault"
id="flexRadioDefault2"
/>
<label class="form-check-label" for="flexRadioDefault2"
>Triangle</label
>
</div>
<div id="slidecontainer">
Circle range/radius: <span id="range"></span
><input
type="range"
min="1"
max="100"
value="15"
class="slider"
id="myRange"
oninput="update()"
/>
<button class="btn" id="resetBtn">Reset - Clear Map</button>
</div>
</div>
</div>
<!-- The map container where the map will be displayed -->
<script>
makeMap();
</script>
<!-- Footer-->
<footer class="py-5 bg-dark">
<div class="container px-5">
</div>
</footer>
</body>
</html>