-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
179 lines (173 loc) · 7.19 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
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
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Network Map | Philly Community Wireless</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- mapbox css -->
<link href="https://api.mapbox.com/mapbox-gl-js/v3.9.3/mapbox-gl.css" rel="stylesheet">
<link href='https://api.mapbox.com/mapbox-assembly/v1.5.1/assembly.min.css' rel='stylesheet'>
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.3/mapbox-gl-geocoder.css" type="text/css">
<!-- custom css -->
<link rel="stylesheet" href="style.css">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.9.3/mapbox-gl.js"></script>
<script src='https://api.mapbox.com/mapbox-assembly/v1.5.1/assembly.js'></script>
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.3/mapbox-gl-geocoder.min.js"></script>
</head>
<body>
<div id="loading">Loading...</div>
<div id="map"></div>
<div id="right-sidebar" class="sidebar flex-center right collapsed">
<div class="sidebar-content rounded-rect flex-center">
<div class="bookmarks">
<div style="font-weight: bold">Select layers</div>
<div class='relative bg-gray-lighter mx6 my6 w180 round flex flex--column'>
<label class='checkbox-container'>
<input type='checkbox' id="layer1" checked />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
<img class="layer-icon"
src="https://raw.githubusercontent.com/phillycommunitywireless/pcwnetworkmap/main/icons/high_sites.png">
High Sites
</label>
<label class='checkbox-container'>
<input type='checkbox' id="layer4" checked />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
<img class="layer-icon"
src="https://raw.githubusercontent.com/phillycommunitywireless/pcwnetworkmap/main/icons/Rooftophubs2.png">
Main Router
</label>
<label class='checkbox-container'>
<input type='checkbox' id="layer2" checked />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
<img class="layer-icon"
src="https://raw.githubusercontent.com/phillycommunitywireless/pcwnetworkmap/main/icons/RooftopHub.png">
Access Points
</label>
<label class='checkbox-container'>
<input type='checkbox' id="layer3" checked />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
<img class="layer-icon"
src="https://raw.githubusercontent.com/phillycommunitywireless/pcwnetworkmap/main/icons/icon1.png"> Mesh
Nodes
</label>
<label class='checkbox-container'>
<input type='checkbox' id="layer5" />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Heatmap
</label>
<div>
<label class='checkbox-container'>
<input type='checkbox' id="neighborhood-boundaries" />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Neighborhoods
</label>
<label class='checkbox-container ml24'>
<input type='checkbox' id="neighborhood-outline-only" />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Outline
</label>
</div>
<div>
<label class='checkbox-container'>
<input type='checkbox' id="income-blocks" />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Income
</label>
<label class='checkbox-container ml24'>
<input type='checkbox' id="show-income-popup" checked />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Show Popup
</label>
</div>
<div>
<label class='checkbox-container'>
<input type='checkbox' id="heatmap-layer" />
<input type='checkbox' id="broadband-blocks" />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Broadband Percentage
</label>
<label class='checkbox-container ml24'>
<input type='checkbox' id="show-broadband-popup" checked />
<div class='checkbox mr6 checkbox--s-label'>
<svg class='icon'>
<use xlink:href='#icon-check' />
</svg>
</div>
Show Popup
</label>
</div>
</div>
<div style="font-weight: bold">Navigate to</div>
<div class="inline-flex flex--column">
<button class="btn btn--gray btn--pill-vt" id="norris_square">Norris Sq. Park</button>
<button class="btn btn--gray btn--pill-vc" id="fairhill_square">Fairhill Sq. Park</button>
<button class="btn btn--gray btn--pill-vb" id="mcpherson_square">McPherson Sq. Park</button>
</div>
<div style="font-weight: bold">Show Connections</div>
<label class="switch-container">
<input type="checkbox" id="toggleNetworkLinks" disabled />
<div class="switch"></div>
<div class="ms-small">High Sites to Routers</div>
</label>
<label class="switch-container">
<input type="checkbox" id="toggleNetworkLinks2" disabled />
<div class="switch"></div>
<div class="ms-small">Routers to Wired APs</div>
</label>
<label class="switch-container">
<input type="checkbox" id="toggleNetworkLinks3" disabled />
<div class="switch"></div>
<div class="ms-small">Wired APs to Mesh Nodes</div>
</label>
</div>
<div class="sidebar-toggle rounded-rect right">
←
</div>
</div>
</div>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.js"></script>
<script type="module" src="https://unpkg.com/@turf/[email protected]/turf.min.js"></script>
<script src="js/main.js" type="module"></script>
</body>
</html>