-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (172 loc) · 7.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>EBPA Census Block Profiler (Alpha)</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css' rel='stylesheet' />
<link rel="stylesheet" href="./style.css">
<!-- JAVASCRIPT LIBRARIES -->
<!-- frontend -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.1.0/handlebars.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script>
<!-- data -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/pbf.js"></script>
<script src="https://unpkg.com/[email protected]/dist/geobuf.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- geo -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script>
<script src="https://unpkg.com/[email protected]/dist/esri-leaflet.js"
integrity="sha512-YZ6b5bXRVwipfqul5krehD9qlbJzc6KOGXYsDjU9HHXW2gK57xmWl2gU6nAegiErAqFXhygKIsWPKbjLPXVb2g=="
crossorigin=""></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script>
<script src='https://npmcdn.com/@turf/turf/turf.js'></script>
<script src='./js/martinez.min.js'></script>
<!-- custom -->
<script src="./js/removeElementById.js"></script>
<script src="./js/updateHandlebarElement.js"></script>
<script src="./js/intersectingPolygons.js"></script>
<script src="./js/containingPolygonProperties.js"></script>
<script src="./js/ebpaScoreBarChart.js"></script>
<script src="./js/mapbox10MinuteWalkIsochrone.js"></script>
<script src="./js/infoPaneMap.js"></script>
<script src="./script.js" defer></script>
</head>
<body class="deep-purple darken-3">
<nav class="deep-purple darken-4 z-depth-5">
<div class="nav-wrapper">
<a href="#" class="brand-logo" id="navbar-title">EBPA Census Block Profiler (Alpha)</a>
</div>
</nav>
<div class="row flex">
<!-- Map Element -->
<div class="col s12 m5" id="map">
<a class="btn-floating btn-small waves-effect waves-light blue-grey tooltipped hide" data-position="bottom" data-tooltip="Toggle 2D/3D" id="toggle-view-button"><i class="material-icons" id="toggle-view-button-icon">language</i></a>
</div>
<!-- Sidebar -->
<div class="col s12 m7 grey darken-3" id="info-pane">
<div class="col s12 m12 l12" id="initial-info-pane-content">
<h2 class="white-text">Welcome to the EBPA Census Block Profiler!</h2>
<p class="white-text">This tool is meant to provide quick information about Raleigh's Census Blocks, particularly as they relate to PRCR's Experience-Based Park Access Model. Start clicking around the map to get more information about an area. <i>If nothing happens, you may need to reload the browser.</i></p>
<div class="row">
<div class="col s12 m6">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">Explore</span>
<p>Use maps and statistics to get a better understanding of the characteristics of the Census Block</p>
</div>
</div>
</div>
<div class="col s12 m6">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">Learn</span>
<p>Each area of a Raleigh has its own unique park needs. Some are well-served by the parks system while others could benefit from improved service.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script id="info-pane-template" type="text/x-handlebars-template">
<div class="col s12 m12 l12" id="info-pane-content">
<h3 class="white-text info-pane-title">{{censusBlockAddress}}</h3>
<i class="white-text">Approximate address at center of Census Block</i>
</div>
<div class="row">
<div class="col s12 m12 l12">
<h3 class="white-text">Level of Service</h3>
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<!-- LOS Values -->
<div class="row">
<div class="col s12 m12 l12">
<h5>Current Level of Service</h5>
</div>
<div class="col s12 m4 l4">
<div class="center-align">
<h1>{{los}}</h1>
</div>
</div>
<div class="col s12 m8 l8">
<div class="chart-container">
<canvas id="los-chart"></canvas>
</div>
</div>
</div>
<!-- LA Values -->
<div class="row">
<div class="col s12 m12 l12">
<h5>Level of Service at full inventory build-out</h5>
</div>
<div class="col s12 m4 l4">
<div class="center-align">
<h1>{{lalos}}</h1>
</div>
</div>
<div class="col s12 m8 l8">
<div class="chart-container">
<canvas id="la-chart"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12">
<h3 class="white-text">Community</h3>
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<div class="row">
<div class="col s12 m8">
<h5>Subdivision</h5>
<p>{{subdivision}}</p>
<h5>Citizen Advisory Council</h5>
<p>{{cac}}</p>
<h5>Council District</h5>
<p>{{council}}</p>
</div>
<div class="col s12 m4">
<!-- <p>Something else interseting could go here potentially. Maybe there's some sort of numeric figure?</p> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6">
<b class="white-text">Zoning</b>
<div id="zoning-map" class="info-pane-map"></div>
</div>
<div class="col s12 m12 l6">
<b class="white-text">Future Land Use</b>
<div id="flu-map" class="info-pane-map"></div>
</div>
<div class="col s12 m12 l6">
<b class="white-text">Greenway</b>
<div id="greenway-map" class="info-pane-map"></div>
</div>
<div class="col s12 m12 l6">
<b class="white-text">Flood Plain</b>
<div id="flood-map" class="info-pane-map"></div>
</div>
</div>
</script>
</body>
</html>