-
Notifications
You must be signed in to change notification settings - Fork 0
/
precipitation.html
502 lines (437 loc) · 29 KB
/
precipitation.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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
<!DOCTYPE html>
<html lang="en">
<head>
<title>Precipitation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Oregon Water Atlas: Precipitation" />
<meta property="og:url" content="oregonwater.info/precipitation.html" />
<meta property="og:description" content="Explore Oregon's Precipitation." />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="css/precip_style.css">
<link rel="stylesheet" href="css/control-minimap.css" />
<link rel="stylesheet" href="css/ekko-lightbox.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="shortcut icon" href="img/oregon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link href="https://fonts.googleapis.com/css?family=La+Belle+Aurore" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Inconsolata" />
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lora:400,400i,500,600,700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/leaflet.ajax.min.js"></script>
<script src="js/storymap.js"></script>
<script src="js/ekko-lightbox.js"></script>
<script src="js/control-minimap.js" type="text/javascript"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top navbar-toggleable-md" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header" style="left:10px; position: fixed;">
<a class="navbar-brand" href="atlas.html">Home</a>
<a class="navbar-brand" href="#">Precipitation</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=annual]').offset().top - $(window).scrollTop() - 10);">Annual</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=january]').offset().top - $(window).scrollTop() - 10);">January</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=february]').offset().top - $(window).scrollTop() - 10);">February</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=march]').offset().top - $(window).scrollTop() - 10);">March</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=april]').offset().top - $(window).scrollTop() - 10);">April</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=may]').offset().top - $(window).scrollTop() - 10);">May</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=june]').offset().top - $(window).scrollTop() - 10);">June</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=july]').offset().top - $(window).scrollTop() - 10);">July</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=august]').offset().top - $(window).scrollTop() - 10);">August</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=september]').offset().top - $(window).scrollTop() - 10);">September</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=october]').offset().top - $(window).scrollTop() - 10);">October</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=november]').offset().top - $(window).scrollTop() - 10);">November</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=december]').offset().top - $(window).scrollTop() - 10);">December</a>
</li>
<li>
<a data-toggle="modal" data-target="#info-modal">About</a>
</li>
<li>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Share
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" target="_blank" href="https://facebook.com/sharer.php?u=http://oregonwater.info/precipitation.html">Facebook</a><br/>
<a class="dropdown-item" target="_blank" href="https://twitter.com/home?status=Oregon's%20Groundwater%0Ahttp%3A//oregonwater.info/precipitation.html">Twitter</a><br/>
<a class="dropdown-item" target="_blank" href="https://github.com/cartobaldrica/water_atlas">Github</a>
</div>
</div>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-4 main">
<section data-scene="overview">
<div class= "overview-background-img background-fullscreen-setting text-responsive"><h4 class="text-center" style="color:white;">Precipitation</h4><br><h4 class ="text-center" style="font-size:20px; margin-top:0px; color: #ffffff; text-shadow: black 0.2em 0.2em 0.3em; margin-left: 25%; margin-right:25%; text-align:justify">Oregon is known for having lots of rain. The reality is far more complicated. While some areas in the Oregon Coast Range are among the rainiest in the U.S, most of Oregon is subject to extremely dry summers. Most of Eastern Oregon is dry throughout the year.</h4>
<br/><br/>
<p class ="text-center" style="font-size:14px; margin-top:0px; color: #ffffff; text-shadow: black 0.2em 0.2em 0.3em; margin-left: 30%; margin-right:30%; display:block">Created by Gareth Baldrica-Franklin, Institute for Water and Watersheds, Oregon State University</p></div>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</section>
<section data-scene="annual">
<h3>Annual</h3>
<p style="padding-right:150px; text-align:justify;">The Cascade Mountains are the cause of the stark contrast between Eastern and Western Oregon. They form a "rain shadow", effectively shielding the interior parts of the state from precipitation.</p>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 10</p><i style="background: #d4cac6;"></i><p> 10 - 20</p><i style="background: #a1a7dd;"></i><p> 20 - 30</p><i style="background: #6986f1;"></i><p> 30 - 40</p><i style="background: #006bff;"></i><p> 40 - 60</p><i style="background: #0056de;"></i><p> 60 - 80</p><i style="background: #0044b8;"></i><p> 80 - 100</p><i style="background: #003293;"></i><p> 100 - 140</p><i style="background: #002375;"></i><p> > 140</p></div>
</section>
<section data-scene="january">
<h3>January</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="february">
<h3>February</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="march">
<h3>March</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="april">
<h3>April</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="may">
<h3>May</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="june">
<h3>June</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="july">
<h3>July</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="august">
<h3>August</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="september">
<h3>September</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="october">
<h3>October</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="november">
<h3>November</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="december">
<h3>December</h3>
<div class="leg"><p style="line-height: 16px;">Avg. Rainfall <br/> in Inches</p><br/><i style="background: #dbd1cb;"></i><p> < 1</p><i style="background: #d4cac6;"></i><p> 1 - 2</p><i style="background: #a1a7dd;"></i><p> 2 - 5</p><i style="background: #6986f1;"></i><p> 5 - 10</p><i style="background: #006bff;"></i><p> 10 - 15</p><i style="background: #0056de;"></i><p> 15 - 20</p><i style="background: #0044b8;"></i><p> 20 - 25</p><i style="background: #003293;"></i><p> 25 - 30</p><i style="background: #002375;"></i><p> > 30</p></div>
</section>
<section data-scene="end">
<div class= "end-background-img background-fullscreen-setting text-responsive"><br>
</section>
<i class="animated zoomIn infinite glyphicon glyphicon-arrow-up arrow-up"></i>
<i class="animated zoomIn infinite glyphicon glyphicon-arrow-down arrow-down"></i>
<!--<i class="animated zoomIn infinite glyphicon glyphicon-menu-down arrow-down"></i>-->
</div>
<div id="map" class="col-sm-6 col-md-8 sidebar"></div>
</div>
<i class="fa fa-info-circle social" style="right:70px;" data-toggle="modal" data-target="#info-modal"></i>
<a class="fa fa-facebook-square social2" style="right:55px;" href="https://facebook.com/sharer.php?u=http://rawgit.com/cartobaldrica/water_atlas/master/infrastructure_index.html" target="_blank"></a>
<a class="fa fa-twitter-square social3" style="right:40px;" href="https://twitter.com/home?status=Oregon's%20Groundwater%0Ahttp%3A//rawgit.com/cartobaldrica/water_atlas/master/infrastructure_index.html" target="_blank"></a>
<a class="fa fa-github-square social3" style="right:25px;" href="https://github.com/cartobaldrica/water_atlas" target="_blank"></a>
<div class="modal fade" id="info-modal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 class="modal-title" style="color:black;">About</h2>
</div>
<div class="modal-body">
<p2>Basemap by CARTO</p><br/>
<p2 style="font-size:20px">Geographic Data</p2><br>
<p2>30-year Normal Precipitation Data: <a href = "http://www.prism.oregonstate.edu/" target="_blank">PRISM Climate Group, Oregon State University</a></p2><br>
</div>
<div class="modal-footer">
<p2>Created with Leaflet and storymap.js</p>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="share-modal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal">×</button>
<a class="fa fa-facebook-square social2" style="font-size: 8em; display:inline;" href="https://facebook.com/sharer.php?u=http://oregonwater.info/precipitation.html" target="_blank"></a>
<a class="fa fa-twitter-square social3" style="font-size: 8em; display:inline;" href="https://twitter.com/home?status=Oregon's%20Groundwater%0Ahttp%3A//oregonwater.info/precipitation.html" target="_blank"></a>
<a class="fa fa-github-square social3" style="font-size: 8em; display:inline;" href="https://github.com/cartobaldrica/water_atlas" target="_blank"></a>
<br/>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
L.TopoJSON = L.GeoJSON.extend({
addData: function(jsonData) {
if (jsonData.type === 'Topology') {
for (key in jsonData.objects) {
geojson = topojson.feature(jsonData, jsonData.objects[key]);
L.GeoJSON.prototype.addData.call(this, geojson);
}
}
else {
L.GeoJSON.prototype.addData.call(this, jsonData);
}
}
});
var legend_zones = '<i style="background: #bf4040; fillOpacity: .5; color:#993333; weight: 1; opacity: 0.5"></i><b><p>Flood Risk Zones</b></p>';
var county_style = {color:'#ffffff', opacity: 0.8, weight: .5,fillOpacity:0};
var layers = {
'annual' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_annual',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'january' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_january',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'february' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_february',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'march' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_march',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'april' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_april',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'may' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_may',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'june' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_june',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'july' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_july',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'august' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_august',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'september' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_september',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'october' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_october',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'november' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_november',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones],
'december' : [L.tileLayer.wms('https://geoserver.library.oregonstate.edu/geoserver/OREGON_WATER/wms', {
layers: 'OREGON_WATER:precip_december',
tiled: true,
format: 'image/png',
transparent: true,
maxZoom: 14,
minZoom: 6,
continuousWorld: true
}), legend_zones]
};
var scenes = {
overview: {lat: 44.1847254, lng:-121.88479, zoom: 7,name:'HOME', position: 'fullpage'},
annual: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'ANNUAL', layers:['annual']},
january: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'JANUARY', layers:['january']},
february: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'FEBRUARY', layers:['february']},
march: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'MARCH', layers:['march']},
april: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'APRIL', layers:['april']},
may: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'MAY', layers:['may']},
june: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'JUNE', layers:['june']},
july: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'JULY', layers:['july']},
august: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'AUGUST', layers:['august']},
september: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'SEPTEMBER', layers:['september']},
october: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'OCTOBER', layers:['october']},
november: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'NOVEMBER', layers:['november']},
december: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'DECEMBER', layers:['december']},
end: {lat: 44.1847254, lng:-121.88479, zoom: 7, name:'END', position:'fullpage'}
};
$('.main').storymap({
scenes: scenes,
layers:layers,
legend: false,
scale:false,
navbar: true,
createMap: function () {
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map',{zoomControl:false, scrollWheelZoom:false}).setView([44.1347254, -122.7411479], 7);
// add an basemap, which can be either OSM, mapbox, tilelayer, wmslayer or those designed by yourself.
/* L.tileLayer.wms("http://mapio.us/geoserver/baldricg_basemap/wms", {
layers: 'baldricg_basemap:basemap_light',
format: 'image/png',
minZoom: 6,
transparent: true,
maxZoom: 15,
attribution: "Created by Gareth Baldrica-Franklin"
}).addTo(map);
L.tileLayer.wms("http://mapio.us/geoserver/baldricg_basemap/wms", {
layers: 'baldricg_basemap:basemap_light_labels',
format: 'image/png',
minZoom: 6,
maxZoom: 15,
transparent: true,
tiled: true,
tilesorigin: [-180, 90]
}).addTo(map);
*/
const orCounties = new L.TopoJSON(null, {
interactive:false
});
$.getJSON('assets/base/or_counties.json')
.done(addCounties);
function addCounties(topoData) {
orCounties.addData(topoData);
orCounties.eachLayer(orHandle);
orCounties.addTo(map);
}
function orHandle(layer){
layer.setStyle({
color: '#ffffff',
fillOpacity: 0,
weight: 0.5,
opacity:0.8
});
}
var CartoDB_Positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="http://cartodb.com/attributions">CartoDB</a>',
subdomains: 'abcd',
minZoom: 6,
maxZoom: 15
}).addTo(map);
var mini = new L.tileLayer('http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="http://cartodb.com/attributions">CartoDB</a>',
subdomains: 'abcd',
maxZoom: 8,
minZoom:5
});
//var miniMap = new L.Control.MiniMap(mini, {toggleDisplay: false, position: 'bottomleft'});
//miniMap.addTo(map);
//new L.Control.Zoom({ position: 'bottomleft'}).addTo(map);
/*if (scene == 'portland'){
miniMap;
}*/
//map.setMaxBounds(map.getBounds());
return map;
}
});
document.getElementsByClassName("leaflet-control-attribution")[0].style.visibility = "hidden";
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});
</script>
</body>
</html>