-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
171 lines (151 loc) · 6.08 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
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Protest+Revolution&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"
rel="stylesheet">
<!-- Bootstrap5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<!-- Marker Cluster Default CSS -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.5.3/MarkerCluster.Default.css"
integrity="sha512-6ZCLMiYwTeli2rVh3XAPxy3YoR5fVxGdH/pz+KMCzRY2M65Emgkw00Yqmhh8qLGeYQ3LbVZGdmOX9KUjSKr0TA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Marker Cluster CSS-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.5.3/MarkerCluster.css"
integrity="sha512-mQ77VzAakzdpWdgfL/lM1ksNy89uFgibRQANsNneSTMD/bj0Y/8+94XMwYhnbzx8eki2hrbPpDm0vD0CiT2lcg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Boxicon CSS -->
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<!-- Own CSS -->
<link rel="stylesheet" href="styles/mobile.css">
<link rel="stylesheet" href="styles/tablet.css">
<link rel="stylesheet" href="styles/laptop.css">
<link rel="stylesheet" href="styles/monitor.css">
<link rel="icon" href="assets/logo.webp">
<title>ClimbDoko | Route Map</title>
</head>
<body>
<header>
<!-- NavBar -->
<nav>
<div id="navLeft">
<a href="/home.html">
<img src="assets/logo.webp" alt="ClimbDoko Logo" />
<span class="protest-revolution-regular">ClimbDoko</span>
</a>
</div>
<div id="navCenter">
<div class="searchContainer">
<input type="search" id="navSearch" placeholder="Search for gyms or routes">
</div>
<div class="autocom-box inactive"></div>
</div>
<div id="navRight">
<a class="homeBtn active" href="/home.html">
<i class='bx bxs-home'></i>
<span>Home</span>
</a>
<a class="mapBtn active" href="/map.html">
<i class='bx bxs-map-alt'></i>
<span>Route Map</span>
</a>
<a id="navSearchBtn">
<i class='bx bx-search-alt active' ></i>
<i class='bx bx-x'></i>
</a>
</div>
</nav>
</header>
<main>
<!-- Interactive Leaflet Map -->
<section id="mapPage">
<button id="toggleMapBtn" onclick="changeMapView()">
<div id="viewMapBtn">
<i class='bx bx-map-alt' ></i><span>View Map</span>
</div>
<div id="exitMapBtn" class="map-active">
<i class='bx bx-x' ></i><span>Exit Map</span>
</div>
</button>
<div id="resultsContainer" class="mapSideBar active">
<div id="locationSelectContainer">
<form>
<label>Select Location Type</label>
<select id="locationTypeSelect">
<option value="climbing-all">All Locations</option>
<option value="climbing-gyms">Climbing Gyms</option>
<option value="climbing-routes">Climbing Routes</option>
</select>
</form>
</div>
<div id="locationContainer"></div>
</div>
<div id="directionContainer" class="mapSideBar">
</div>
<div id="nearbyContainer" class="mapSideBar"></div>
<div id="weatherContainer" class="mapSideBar"></div>
<div id="mapContainer" class="map-active">
<div id="map"></div>
<form>
<select name="country" id="mapCountry"></select>
<select name="state" id="mapState">
</select>
</form>
<a id="currLocationBtn">
<i class='bx bx-current-location'></i>
</a>
</div>
</section>
</main>
<footer>
<div>
<section>
<p>PAGES</p>
<a href="home.html">Home</a>
<a href="map.html">Route Map</a>
</section>
<section>
<p>CONTACT</p>
<a href="https://www.linkedin.com/in/f-lsq/" target="_blank">LinkedIn</a>
<a href="https://github.com/f-lsq" target="_blank">GitHub</a>
<a href="mailto:fionaloo69@gmail.com">Email</a>
</section>
</div>
<img src="assets/footer.webp" alt="Mountain Range"/>
</footer>
<!-- Axios JS -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- Bootstrap5 JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<!-- Leaflet JS -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<!-- Marker Clustering JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.5.3/leaflet.markercluster.js"
integrity="sha512-OFs3W4DIZ5ZkrDhBFtsCP6JXtMEDGmhl0QPlmWYBJay40TT1n3gt2Xuw8Pf/iezgW9CdabjkNChRqozl/YADmg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Boxicon JS -->
<script src="https://unpkg.com/boxicons@2.1.4/dist/boxicons.js"></script>
<!-- Sweet Alert JS -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Own JS -->
<script src="scripts/map.js"></script>
<script src="scripts/data.js"></script>
<script src="scripts/Polyline.encoded.js"></script>
<script src="scripts/overlay.js"></script>
<script src="scripts/search.js"></script>
<script src="scripts/script.js"></script>
</body>
</html>