-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
270 lines (238 loc) · 15.7 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8E9JEZD1X4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8E9JEZD1X4');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Spoken Floodplain</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ=="
crossorigin="" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ=="
crossorigin=""></script>
<script src='https://code.jquery.com/jquery-1.11.0.min.js'></script>
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js"></script>
<link rel="stylesheet" href="css/main.css" />
<script src="js/vendor/NoSleep.js"></script>
</head>
<body>
<div class="container">
<h1 id="header">Spoken Floodplain</h1>
<br>
<div class="row">
<div class="col text-center">
<button id="start" class="btn" onclick="spokenGeoJSON_Harris_global.getLocation()" style = "background-color: #bbe196"><i class="glyphicon glyphicon-map-marker"></i>Start Location and Speech-based Services</button>
<br/>
<br/>
<button id="stop" class="btn selected" onclick="spokenGeoJSON_Harris_global.stopSpeechUtteranceAndLoop()" style = "background-color: #f64453"><i class="glyphicon glyphicon-map-marker"></i>Stop Speech</button>
</div>
</div>
<br><br>
<!-- <p id="locationHeader">Status:</p> -->
<div id="location">Location Services Not Yet Running</div>
<br>
<div id="map"></div>
</div>
<div class="container">
<div class="row">
<br/>
<div class="col text-center">
<div class="dropdown">
<button onclick="showOrHideItemsInTimingList()" class="btn selected dropbtn constantly">How often to say whether you are inside the floodplain</button>
<div id="myDropdown" class="dropdown-content">
<a class="constantly" onclick="spokenGeoJSON_Harris_global.changeSpeakingRate('constantly',10)" >10 seconds</a>
<a class="constantly"onclick="spokenGeoJSON_Harris_global.changeSpeakingRate('constantly',60)">60 minute</a>
<a class="constantly" onclick="spokenGeoJSON_Harris_global.changeSpeakingRate('constantly',300)">300 seconds or 5 minutes</a>
</div>
</div>
<br/>
<br/>
<button id="boundaries" class="btn" onclick="spokenGeoJSON_Harris_global.changeSpeakingRate('boundaries')" style = "background-color: #f8ef89"><i class="glyphicon glyphicon-map-marker"></i>Speak Only When Entering or Leaving Floodplain</button>
</div>
</div>
</div>
<div class="container">
<h1>How to Use this Website</h1>
<h4>Instructions</h4>
<ol>
<li>This website experience only works for Harris County, Texas!</li>
<li>Turn on your phone's map application, google maps, apple maps, etc.</li>
<li>Start this website. (steps 1 and 2 can be done in either order)</li>
<li>Click the green button, which lets your device know you're okay with this website using your location.
You may also need to change other phone settings. See privacy information below.</li>
<li>You can now go ahead and drive or bike.</li>
</ol>
<p>You might need to turn off the "sleep" functionality of your phone, so it doesn't go to sleep.
Without this, you'll need to touch the screen occassionally to keep it "awake". </p>
<p>
Currently, it needs your native map running at the same time no iOS.
Without it, your location may stall out and not refresh properly.
This will eventualy no longer be needed in a future update.
Directions and this map will speak at the same time. As this is a demo, it speaks all the time.
Eventually, it will only speak when you enter or leave a floodplain. </p>
<p>
Finally, this is brand new and a work in progress! Please let us know your experiences and drop us a line. See the feedback section below.
</p>
<h1>Disclaimer</h1>
<p><i>This website is is not suitable for legal, engineering, surveying, or property purchase purposes.</i></p>
<p>Please visit FEMA's Map Service Center at <a href="https://www.fema.gov/flood-maps">https://www.fema.gov/flood-maps</a> to view the effective FIRM for Harris County.
For an official floodplain determination, please contact an insurance agent or mortgage lender.</p>
<p>This map is a representation and approximation of the relative location of geographic information, land marks and physical addresses.
This floodplain polygons were exported at a specific moment in time based on tentative FEMA FIRMs of a specific version.
FEMA floodplain maps evolve over time. Do not assume this is the latest!
Additionally, as the climate changes, FEMA floodplain maps are increasingly out of date.
Finally, the data for your location comes from your device, which has uncertainty as well.
Please check specific addresses against FEMA floodplain maps anytime you need accurate information.
Do not rely on this application for accurate information or make any decisions on the basis of information provided by it! </p>
<p>Flooding is not limited to floodplains.
Many Harris County areas outside floodplains got flooding damage during Hurrican Harvey.</p>
<hr/>
<h2>Why?</h2>
<h4>This website is meant to supply SPOKEN floodplain information while ON THE MOVE!</b>
</h4>
<p>
While other floodplain maps listed below under "Other Floodplain Resources" are best used sitting at home in front of a computer,
this service is meant to be used while in a car or on a bike.
People can be told when they enter or leave a floodplain without
having to actively interact with a device by clicking through many screens and typing in addresses.
</p>
<p><a href='https://www.bloomberg.com/news/articles/2022-09-12/real-estate-listings-with-flood-scores-shift-home-shopper-habits?sref=fRZXrT1O'>Studies</a> have shown
that putting floodplain information inside home buyers workflows change how they percieve the information and changes their home
purchasing behavior. </p>
<p>
This website is based on the hypothesis that changing how and when people experience floodplain information may change their purchasing behavior.
</p>
<ol>
<li>Change <i>how</i> you experience floodplain information:
<uL>
<li>from... an abstract map </li>
<li>to... information experienced in real-time while physically experiencing a place. </li>
</uL>
</li>
<li>Change <i>when</i> you experience floodplain information:
<uL>
<li>from... separate in time from looking at a house and potentially days later. </li>
<li>to... information experienced in real-time and potentially even before you see a house. </li>
</uL>
</li>
</oL>
<p>
Avoid falling in love with a house and then have to argue yourself out of that decision once you learn it is in a floodplain or even a floodway.
</p>
<h3>Other Floodplain Resources</h3>
<p>
Other floodplain maps focus on serving users who are sitting at a computer and looking up information for a single address.
This map is a supplement to these other map experiences.
</p>
<h4>Harris County Flood Control District Interactive Flood Mapping Tool</h4>
- <a href="https://www.hcfcd.org/Resources/Interactive-Mapping-Tools/Harris-County-Flood-Education">Link to Harris County Flood Control District Interactive Flood Mapping Tools</a>
<h5>Benefits:</h5>
<ul>
<li>Good for looking up a specific address</li>
<li>Tied to other information for understanding flood risks specific to Harris County, Texas.</li>
</ul>
<h5>Disadvantages:</h5>
<ul>
<li>Distracting to try to use while driving.</li>
<li>Limited to Harris County only</li>
<li>Hard to tell where you are on the map at any given time if you don't have an address as users can not zoom all the way in and there is no location sharing with the map.</li>
</ul>
<h4>FEMA</h4>
<ul>
<li>
<a href="https://www.fema.gov/flood-maps">FEMA Floodplain FIRMs PDFs</a>
</li>
<li>
<a href="https://www.fema.gov/flood-maps">FEMA Interactive Floodplain Address Based Search Map</a>
</li>
</ul>
<h5>Benefits:</h5>
<ul>
<li>Good for looking up a specific address</li>
<li>FEMA FIRMS form the basis of whether a property is in the floodplain or floodway for legal and insurance purposes.</li>
</ul>
<h5>Disadvantages:</h5>
<ul>
<li>Distracting to try to use while driving.</li>
<li>Hard to find an interactive map on their site.</li>
<li>Hard to tell where you are on the map at any given time if you don't have an address map does not know your device's location.</li>
</ul>
<hr/>
<h2>Information about Floodplains</h2>
<p>This information is from <a href="https://www.eng.hctx.net/Consultants/Floodplain-Management/Floodplain-Information">Harris County Engineering Department</a>.</p>
<!-- <h3>Harris County Floodplain</h3> -->
<p>
Harris County is the third largest county in the United States with a population greater than three million.
It covers 1,788 square miles with 1,500 channels totaling about 2,500 miles in length within twenty-two
watersheds. The land use consists of urban, residential, commercial, and heavy industrial areas. In the last
century, over 30 thunderstorms, tropical storms, and hurricanes have caused flooding in Harris County. Each
bayou and creek include areas known as "floodplains," where water collects, pools, and flows during the
course of a natural storm event. </p>
<p>
A floodplain is defined as any land area susceptible to being inundated by water from any source. These
areas are classified as Special Flood Hazard Areas (SFHA), and are located in a 100-year flood zone. The
term "100-year flood" can be misleading. It does not mean that the flood will occur every 100 years; rather
it is the flood elevation that has a 1- percent chance of being equaled or exceeded each year. Harris County
has Flood Insurance Rate Maps (FIRM) that identify all floodplain areas within the county limits. </p>
<p>Floods are one of the most common hazards in the United States. Flood effects can be local, impacting a
neighborhood or community, or very large, affecting entire river basins and multiple states. It is important
to be aware of flood hazards no matter where you live. Even very small streams, gullies, creeks, culverts,
dry streambeds, or low-lying ground that appears harmless in dry weather can flood.</p>
<h4>Risk</h4>
<ul>
<li>Floods are the #1 natural disaster in the United States.</li>
<li>Just an inch of water can cause costly damage to property. As little as six inches of moving water
can knock you off your feet or move your car.</li>
<li>Most homeowners insurance doesn't cover flood damage.</li>
<li>More than 50 percent of properties in high-risk areas remain unprotected by flood insurance; all
properties in high-risk areas need to be protected with flood insurance.</li>
<li>Between 20 and 25 percent of all flood insurance claims are filed in low-to moderate-risk areas.
</li>
<li>New construction can increase flood risk, especially if it changes natural runoff paths.</li>
<li>More than 5 million Americans are protected with flood insurance but millions more are unaware of
their personal risk for property damage or options for protection.</li>
<li>For building in high flood risk areas, there is a 26 percent chance of experiencing a flood during
the life
of a 30-year mortgage, compared to a nine percent chance of experiencing a fire.</li>
</ul>
<h4>Impact</h4>
<ul>
<li>Flood losses in the United States averaged $2.4 billion per year for the last decade.</li>
<li>The National Flood Insurance Program (NFIP) has paid nearly $16 billion in flood insurance claims to
policyholders during the 2005 hurricane season (as of August 31, 2006.)</li>
<li>Federal disaster assistance is usually a loan that must be paid back with interest and is only
available when a disaster has been federally declared.</li>
<li>In the last 52 years, nearly 1,000 flood events have been designated as federally declared
disasters.</li>
<li>Nearly 75 percent of all federally declared disasters over the past five years involved flooding.
</li>
</ul>
</p>
<h2>Feedback</h2>
<p>Please let us know if you use the website. We are desparate for feedback from users.
You can supply user feedback as described <a href="https://github.com/JustinGOSSES/spoken-floodplain/issues/5">here</a>.</p>
<p>This website is a front-end only website whose code lives in
<a href="https://justingosses.github.io/spoken-floodplain/">this code repository</a>.
Please flag code related problems and make any changes requests via an issue or pull request on the repository.
</p>
<p>This was built as part of the <a href="https://devpost.com/software/spoken-floodplain">Houston Hackathon 2022</a>.</p>
<h2>Privacy</h2>
<p>When your device shares your specific location, that is only used with the JavaScript used on your device.
It is not sent to a server. Your IP will tracked on a temporary basis via Google Analytics, so we can understand how many people
are using this service.
</p>
</div>
</body>
<script src="js/index.js"></script>
</html>