-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
269 lines (254 loc) · 13.8 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
<!doctype html>
<html lang="en">
<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">
<link rel="stylesheet" href="./resources/ol.css">
<link rel="stylesheet" href="resources/fontawesome-all.min.css">
<link rel="stylesheet" href="./resources/ol-layerswitcher.css">
<link rel="stylesheet" href="./resources/pat.css">
<link rel="stylesheet" href="./resources/qgis2web.css">
<link rel="stylesheet" href="./resources/pat-loader.css">
<link rel="stylesheet" href="./resources/pat-snackbar.css">
<style>
.ol-geocoder.gcd-gl-container {
top: 100px!important;
left: 8px!important;
}
.ol-touch .ol-geocoder.gcd-gl-container{
top: 130px!important;
}
.ol-geocoder .gcd-gl-btn:after{
display:none;
}
</style>
<div id="loader"></div>
<style>
.search-layer {
top: 135px;
left: .5em;
}
.ol-touch .search-layer {
top: 180px;
}
</style>
<style>
html, body {
background-color: #ffffff;
}
.ol-control button {
background-color: #f8f8f8 !important;
color: #000000 !important;
border-radius: 0px !important;
}
.ol-zoom, .geolocate, .gcd-gl-control .ol-control {
background-color: rgba(255,255,255,.4) !important;
padding: 3px !important;
}
.ol-scale-line {
background: none !important;
}
.ol-scale-line-inner {
border: 2px solid #f8f8f8 !important;
border-top: none !important;
background: rgba(255, 255, 255, 0.5) !important;
color: black !important;
}
</style>
<link href="resources/ol-geocoder.min.css" rel="stylesheet">
<style>
.tooltip {
position: relative;
background: rgba(0, 0, 0, 0.5);
border-radius: 4px;
color: white;
padding: 4px 8px;
opacity: 0.7;
white-space: nowrap;
}
.tooltip-measure {
opacity: 1;
font-weight: bold;
}
.tooltip-static {
background-color: #ffcc33;
color: black;
border: 1px solid white;
}
.tooltip-measure:before,
.tooltip-static:before {
border-top: 6px solid rgba(0, 0, 0, 0.5);
border-right: 6px solid transparent;
border-left: 6px solid transparent;
content: "";
position: absolute;
bottom: -6px;
margin-left: -7px;
left: 50%;
}
.tooltip-static:before {
border-top-color: #ffcc33;
}
.measure-control {
top: 65px;
left: .5em;
display: flex;
}
.ol-touch .measure-control {
top: 80px;
}
.measure-control label {
padding: 1px;
padding-right: 4px;
}
.collapsible {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.pat-button {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #555;
}
.active, .pat-button:hover {
background-color: #555;
}
.content {
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
}
</style>
<style>
#map {
width: 100%;
height: 70%;
}
</style>
<title>Web Map for 2-year return period peak flow rate</title>
</head>
<div id="snackbar">Zoom in to your site location or use the search function (🔍) located at the top left corner. After zooming in, click on the map to retrieve the Q2 value.</div>
<!-- Use a button to open the snackbar -->
<body>
<div style="display: inline-block; margin:1%;"><h1> Review of methodology for estimating flood peaks and hydrographs for small catchments</h1><h2>Web Map for 2-year return period peak flow rate (l/s/ha)</h2></div>
<div id="map">
<div id="popup" class="ol-popup">
<a href="#" id="popup-closer" class="ol-popup-closer"></a>
<div id="popup-content"></div>
</div>
</div>
<div>
<div style="display: inline-block; margin:2%; width: 50%;">
<label>
Layer Opacity
<input id="opacity-input" type="range" min="0" max="1" step="0.01" value="0.8" />
<span id="opacity-output"></span>
</label>
<div>The underlying data presented has been retrieved from <br> <i>SC090031/R0/Appendix B - Free greenfield plot-scale peak flow rate and volume screening data.</i></div>
<br>
<div>Environment Agency (2024). Estimating flood peaks and hydrographs for small catchments: Appendix B to SC90031/R0 – overview report. Environment Agency, Bristol, UK</div>
<br>
<div>Make sure to review to review the <a href="#projectReadMe" onclick="expandSection(event)">README section</a> below and have a look at <a href="https://assets.publishing.service.gov.uk/media/65fd9d70f1d3a0001132ae54/Estimating_flood_peaks_and_hydrographs_for_small_catchments_-_R0_-_Overview_report.pdf" target="_blank">SC090031/R0 - overview report</a></div>
</div>
<button type="button" class="collapsible" id="projectReadMe" href="#projectReadMe">Project README</button>
<div class="content">
<p><strong>The contents below have been copied verbatim from R0_Appendix_B_-_Greenfield_plot-scale_peak_flow_rate_and_volume_screening_data\README.txt </strong> <br><br> HELPFILE <br>Title: Free greenfield plot-scale peak flow rate and volume screening data usage<br>Project: SC090031<br>Last edited: 2019-10-08 - Griffin, A.<br><br>Free plot-scale peak flow rates and volume datasets are provided as part of Project SC090031 Estimating flood peaks and hydrographs for small catchments (Phase 2). <br><br>The data are 1 km raster grids of estimated plot-scale peak flow rate (l/s/ha) across England and Wales for return periods of 12 months, 2 years, 30 years and 100 years (note that a 12-month return period on the peaks-over-threshold scale equates to approximately a 1.58-year return period on the annual maximum scale).<br><br>The dataset also includes estimated values for peak flow rate (l/s/ha) and runoff volume (m3) corresponding to a 6-hour 100-year return period rainfall event.<br><br>This helpfile outlines the data provided and some guidelines for usage.<br><br>CONTENTS<br>Q1MAP.asc 12-month return period peak flow rate<br>Q2MAP.asc 2-year return period peak flow rate<br>Q30MAP.asc 30-year return period peak flow rate<br>Q100MAP.asc 100-year return period peak flow rate<br>Q6H100Y.asc 6-hour 100-year return period peak flow rate<br>ROVOL6H100Y.asc 6-hour 100-year return period runoff volume<br><br>INFORMATION WARNING<br>These estimates of peak flow rates and runoff volume are on average more conservative than the FEH ReFH2 method, i.e. they are biased towards underestimating greenfield peak flow rates and runoff volume.<br><br>However, conservative estimates cannot be guaranteed for any individual point, and therefore the data should only be used for preliminary screening and to provide precautionary results for use at the pre-planning stage of new developments. <br><br>It is recommended that use of the data should be followed up by the use of the FEH ReFH2-FEH13 hydrological design package.<br><br>Before using the data within this archive, you must read and understand all limitations associated with the data. Details are provided within this readme.txt and section 13.5 of the published report "SC090031 R0 Phase 2 overview report", available from: (https://www.gov.uk/flood-and-coastal-erosion-risk-management-research-reports/review-of-methodology-for-estimating-flood-peaks-and-hydrographs-for-small-catchments).<br><br>DATA INFORMATION<br>- The gridded outputs consist of six ASCII gridded datasets at 1-km resolution, outlined in Table A2.1.<br>- The cell centres lie on 1000m increments of the GB National Grid.<br>- The grid extends from eastings -500m to 699500m, northings -500m to 1299500m.<br>- Cells outside England and Wales have the no-data value -9999.<br>- Estimated runoff rates are given in l/s/ha and estimated volume in m3.<br><br><br>USAGE GUIDELINES<br>For small plot-scale sites, the value of the closest grid cell centroid should be selected.<br><br>Interpolation methods may not give a more reliable answer than simply taking the closest value. <br><br>If an interpolation scheme is used, a simple inverse-distance scheme would be appropriate.<br><br>To use this method:<br>Identify the values for up to 4 grid posts nearest to the site centroid. <br>Identify the distance from the site centroid to each grid post and take an inverse-distance weighted average of the grid post values.<br><br>This is suitable for a site much less than 50 ha in size. For larger sites, users should make their own judgement about the spatial variation in runoff rates across the site based on local information on soils.</p>
<p><strong>Please note: The README on this site may not always reflect the most current information. For the latest version, we recommend downloading the <a href="https://assets.publishing.service.gov.uk/media/65f9b74f9316f5001164c346/R0_Appendix_B_-_Greenfield_plot-scale_peak_flow_rate_and_volume_screening_data.zip">Appendix_B info</a> directly from the project website.</strong></p>
</div>
</div>
<button type="button" class="pat-button" onclick="window.open('https://www.gov.uk/flood-and-coastal-erosion-risk-management-research-reports/review-of-methodology-for-estimating-flood-peaks-and-hydrographs-for-small-catchments', '_blank')">Visit Project Website (external) - Flood and Coastal Erosion Risk Management (FCERM) research reports</button>
<footer id="myFooter">
<div class="pat-container pat-theme-l2 pat-padding-32" style="position: relative;">
<h2>Web Map for SC090031/R0/Appendix B - Q2MAP - 2-year return period peak flow rate</h2>
<h5>© Environment Agency copyright and/or database right 2024</h5>
<h5>Map prepared by Pat Obermajer</h5>
<h5><a href="http://obermajer.co.uk" target="_blank">obermajer.co.uk</a></h5>
<!-- <h5>© <span id="year"></span> Pat Obermajer</h5> -->
</div>
</footer>
<script>
document.getElementById('year').textContent = new Date().getFullYear();
</script>
<script src="resources/qgis2web_expressions.js"></script>
<script src="resources/proj4.js"></script>
<script>proj4.defs('EPSG:27700','+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs');</script>
<script src="resources/polyfills.js"></script>
<script src="./resources/functions.js"></script>
<script src="./resources/ol.js"></script>
<script src="./resources/ol-layerswitcher.js"></script>
<script src="resources/ol-geocoder.js"></script>
<script src="layers/GreenfieldrunoffprecautionaryReturnperiod2yrslsha_1.js"></script>
<script src="styles/GreenfieldrunoffprecautionaryReturnperiod2yrslsha_1_style.js"></script>
<script src="./layers/layers.js" type="text/javascript"></script>
<script src="./resources/Autolinker.min.js"></script>
<script src="./resources/qgis2web.js"></script>
<script src="./resources/pat-loader.js"></script>
<script src="./resources/pat-snackbar.js"></script>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
<script>
// Function to handle the link click
function expandSection(event) {
event.preventDefault(); // Prevent the default anchor click behavior
// Find the collapsible button and simulate a click on it
var collapsible = document.getElementById('projectReadMe');
var content = collapsible.nextElementSibling;
// Simulate a click on the collapsible
collapsible.click();
// Scroll to the collapsible section
collapsible.scrollIntoView({behavior: 'smooth', block: 'start'});
// Optionally, you can add a check to only expand if it's not already expanded
if (!collapsible.classList.contains('active')) {
collapsible.classList.add('active');
content.style.maxHeight = content.scrollHeight + "px";
}
}
// Your existing collapsible code should still work fine
var coll = document.getElementsByClassName("collapsible");
for (var i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + "px";
}
});
}
</script>
</body>
</html>