-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (92 loc) · 4.65 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>New West Trees</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/MarkerCluster.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<style>
#map{ height: 90% }
.starthidden {
display: none;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">New West Trees</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 navbar-nav me-auto mb-2 mb-lg-0" id="navbarSupportedContent">
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#aboutModal">
About
</button>
<button type="button" class="btn btn-info" onclick="showAll()">Reset map</button>
<form class="d-sm-flex" action="">
<div class="btn-group" role="group" aria-label="Toggle search by species or genus">
<input type="radio" class="btn-check" name="btnradio" id="searchBySpecies" autocomplete="off" onclick="showSpeciesMenu()" checked />
<label class="btn btn-outline-primary" for="searchBySpecies">Search by species</label>
<input type="radio" class="btn-check" name="btnradio" id="searchByGenus" autocomplete="off" onclick="showGenusMenu()"/>
<label class="btn btn-outline-primary" for="searchByGenus">Search by genus</label>
</div>
<div id="common_name_menu">
<label for="common_name">Species</label>
<select id="common_name_list"></select>
</div>
</form>
<form class="d-sm-flex" action="">
<div id="genus_menu" class="starthidden">
<label for="genus">Genus</label>
<select id="genus_list"></select>
</div>
</form>
</div>
</div>
</nav>
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>
<h4 class="modal title">Welcome to New West Trees!</h4>
</div>
<div class="modal-body">
<p>A project to display New Westminster trees.</p>
<p>Contains information licenced under the <a href="https://data-60320-newwestcity.opendata.arcgis.com/pages/terms-of-use">Open Government Licence - City of New Westminster</a>.</p>
<p><a href="https://opendata.newwestcity.ca/datasets/newwestcity::tree-inventory/explore">Original data set</a></p>
<p>
</div>
</div>
</div>
</div>
<div id="map"></div>
<p>Contains <a href="https://opendata.newwestcity.ca/datasets/newwestcity::tree-inventory/explore" target="blank">information</a> licenced under the <a href="https://data-60320-newwestcity.opendata.arcgis.com/pages/terms-of-use" target="blank">Open Government Licence - City of New Westminster</a></p>
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous">
</script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous">
</script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous">
</script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.markercluster.js"></script>
<script src="map_setup.js"></script>
<script src="gis_query.js"></script>
<script src="script.js"></script>
</body>
</html>