-
Notifications
You must be signed in to change notification settings - Fork 0
/
umatilla.html
795 lines (697 loc) · 34.6 KB
/
umatilla.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
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
<!DOCTYPE html>
<html lang="en">
<head>
<title>Umatilla</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Oregon Drinking Water" />
<meta property="og:url" content="oregonwater.info/umatilla.html" />
<meta property="og:description" content="Explore the Umatilla Basin water conflict." />
<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/umatilla_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="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Inconsolata" />
<link href="https://fonts.googleapis.com/css?family=Lora:400,400i,500,600,700&display=swap" rel="stylesheet">
<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">
<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://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://d3js.org/topojson.v1.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>
<style>
.leaflet-container {
/*background: #ecf9f2;*/
}
</style>
</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="#">Umatilla</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=rivers]').offset().top - $(window).scrollTop() - 10);">Rivers</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=watersheds]').offset().top - $(window).scrollTop() - 10);">Watersheds</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=lakes]').offset().top - $(window).scrollTop() - 10);">Lakes</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=councils]').offset().top - $(window).scrollTop() - 10);">Watershed Councils</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=wetlands]').offset().top - $(window).scrollTop() - 10);">Wetlands</a>
</li>
<li>
<a href="javascript:window.scrollBy(0, $('section[data-scene=river_pollution]').offset().top - $(window).scrollTop() - 10);">Pollution</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="http://facebook.com/sharer.php?u=http://oregonwater.info/umatilla.html">Facebook</a><br/>
<a class="dropdown-item" target="_blank" href="http://twitter.com/home?status=Oregon's%20Groundwater%0Ahttp%3A//oregonwater.info/umatilla.html">Twitter</a><br/>
<a class="dropdown-item" target="_blank" href="http://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 text-shadow: black 0.2em 0.2em 0.3em;"><h4 class="text-center" style="color: black">Uniting the Umatilla</h4><h4 class ="text-center" style="font-size:20px; margin-top:0px; color: #000000; margin-left: 25%; margin-right:25%; text-align: justify;">The Umatilla River used to support vast runs of anadromous fish, such as Chinook Salmon and Steelhead. These fish were caught by local indigenous groups, providing sustenance and and cultural value. The arrival of European settlers, river engineering, and irrigation prevented salmon and steelhead runs for over 70 years. It took decades of disagreement and struggle, but the effort of the Umatilla Reservation and their negotiations with downstream irrigators ensured the return of fish and a legacy of conflict resolution.</h4>
<br/><br/>
<p class ="text-center" style="font-size:14px; margin-top:0px; color: #000000; margin-left:30%; margin-right:30%; display:block; font-weight:bold;">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="basin">
<h3>The Basin</h3>
<p>River: Umatilla</p>
<p>Tributaries: Butter Creek, Wildhorse Creek, McKay Creek, Birch Creek</p>
<p>Area: 2,450 square miles</p>
<p>Average Discharge: 494 cubic feet/second</p>
<p>Mouth: Columbia River</p>
<p>Population: 76,456</p>
<div class ="leg">
</div>
</section>
<section data-scene="river">
<h3>The People</h3>
<p>Much of the population is concentrated in the irrigated areas towards the mouth of the Umatilla River. Upstream, the Umatilla Indian Reservation houses nearly 3,000 people.</p>
<br/>
<div class ="leg">
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
<i style = "background: #f4f0bd;"></i><p>Umatilla Reservation</p>
</div>
</section>
<section data-scene="reservation">
<h3>The Reservation</h3>
<p>In 1855, the Umatilla, Cayuse, and Walla Walla peoples entered in treaty with the United States, ceding their native lands and relocating to a reservation. The treaty provided protections for hunting and fishing, both within the reservation and at "usual and accustomed" places outside the reservation.</p>
<br/>
<div class ="leg">
<i style = "background: #f4f0bd;"></i><p>Umatilla Reservation</p>
</div>
</section>
<section data-scene="settlements">
<h3>European Settlement</h3>
<p>Umatilla County was formed by the territorial government in 1862, anchored around the Euro-American towns of Pendleton and Hermiston.</p>
<br/>
<div class ="leg">
</div>
</section>
<section data-scene="irrigation">
<h3>Irrigation</h3>
<p>As population increased throughout the end of 19th century, demands for irrigation grew along the lower Umatilla.</p>
<br/>
<div class ="leg">
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
</div>
</section>
<section data-scene="usbr">
<h3>Umatilla Project</h3>
<p>In 1905, the United States Bureau of Reclamation began the Umatilla Basin Project, constructing dams, canals, and reservoirs throughout the basin.</p>
<br/><p>The main feature of the project was Cold Springs Reservoir, which was created from diversions directly from the Umatilla River.</p>
<br/>
<div class ="leg">
<img src="img/xmarker_blue.png" height="15" width="15"><p style ="line-height:14px;"> Dam</p><br/>
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
</div>
</section>
<section data-scene="mckay">
<h3>Umatilla Project</h3>
<p>Upstream, the Mckay reservoir was created in the 1920s to provide more water to the irrigators of the lower Umatilla.</p>
<br/>
<div class ="leg">
<img src="img/xmarker_blue.png" height="15" width="15"><p style ="line-height:14px;"> Dam</p><br/>
</div>
</section>
<section data-scene="status">
<h3>River Depletion</h3>
<p>An irrigation-based economy emerged in the Basin. However, for several months of the year, irrigation demands would completely dry the Umatilla River.</p>
<br/>
<p>The drying river, combined with blockages created by the dams, severely depleted salmon runs. </p>
<div class ="leg">
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
<i style = "background: #f4f0bd;"></i><p>Umatilla Reservation</p>
</div>
</section>
<section data-scene="drying">
<h3>The Salmon</h3>
<p>Salmon are of primary importance to the culture and economy of the Umatilla Reservation. Additionally, the 1855 treaty gave the tribes a right to the water necessary to fulfill their purposes.</p>
<br/>
<p>The federal government effectively prioritized the water rights of the irrigation economy of the lower Umatilla over the already established needs of the reservation.</p>
<div class ="leg">
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
<i style = "background: #f4f0bd;"></i><p>Umatilla Reservation</p>
</div>
</section>
<section data-scene="conflict">
<h3>The Conflict</h3>
<p>The conflict between irrigators and the tribes grew increasingly heated. In the 1970s, Senator Mark O. Hatfield held a hearing in Pendleton regarding the Umatilla conflict. It was an important step in the establishment of dialogue between the two groups.</p>
<br/>
<p>Both quickly realized that their blame should be directed at the federal government, which had promised both parties sufficient water.</p>
<div class ="leg">
</div>
</section>
<section data-scene="solution1">
<h3>The Solution</h3>
<p>The Tribes of the Umatilla pushed for an out-of-court solution, not wanting to waste financial resources on expensive litigation, as had happened in other basins throughout the west. In 1988, after a decade of negotiations, an agreement was finally reached.</p>
<br/>
<div class ="leg">
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
</div>
</section>
<section data-scene="solution2">
<h3>The Solution</h3>
<p>A series of pumps, pipelines and canals, would transfer river directly from the Columbia to Cold Springs Reservoir and the irrigation districts to the south. Additionally, fish ladders were improved or installed at five dams along the river.</p>
<br/>
<div class ="leg">
<img src="img/pump_marker.png" height="15" width="15" style="margin-right:6px;"><p style ="line-height:14px;"> Pumping Station</p><br/>
<img src="img/white_line.png" height="3" width="18" style="filter:invert(100%);"><p style ="line-height:5px;"> Canal</p><br/>
<img src="img/white_line_dash.png" height="3" width="18" style="filter:invert(100%);"><p style ="line-height:10px;"> Pipeline</p><br/>
</div>
</section>
<section data-scene="solution3">
<h3>The Solution</h3>
<p>The diversions from the Columbia offset the water need at McKay reservoir, freeing water for the Umatilla. While the river still dries in certain months, the agreement ensures that it flows during major fish runs.</p>
<br/>
<div class ="leg">
</div>
</section>
<section data-scene="fishReturn">
<h3>Fish Return</h3>
<p>The Umatilla Project was completed in 1996. Senator Hatfield noted that the Umatilla offers an example of how to resolve water conflicts through grassroots negotiation.</p>
<br/>
<p>After its completion, Chinook and other salmon returned to the Umatilla, spawning for the first time in 70 years. In most years since, there have been enough fish for native and non-native populations.</p>
<br/>
<p>But more work can be done. There are currently efforts to remove some of the smaller dams along the Umatilla, namely, Dillon Dam.</p>
<div class ="leg">
<i style = "background: #ffb3b3;"></i><p>Irrigation Districts</p>
<i style = "background: #f4f0bd;"></i><p>Umatilla Reservation</p>
</div>
</section>
<section data-scene="end">
<div class= "end-background-img background-fullscreen-setting text-responsive"><br>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><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>
</div>
<div id="map" class="col-sm-6 col-md-8 sidebar"></div>
</div>
<ul class="navbar text-center"></ul>
<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">About</h2>
</div>
<div class="modal-body">
<p2>End Photo by Williamborg - retrieved from Wikimedia Commons</p2><br>
<p2 style="font-size:20px">Geographic Data</p2><br>
<p2>Cities: <a href = "http://spatialdata.oregonexplorer.info/geoportal/details;id=13218fa592a749d596707880c2d0ab5f" target="_blank">Oregon Spatial Data Library</a></p2><br>
<p2>Reservation: <a href = "https://catalog.data.gov/dataset/tiger-line-shapefile-2014-series-information-file-for-the-current-american-indian-ala" target="_blank">Data.gov</a></p2><br>
<p2>Rivers: <a href = "http://spatialdata.oregonexplorer.info/geoportal/details;id=01606665b1034dc6877fbad58bb9879a" target="_blank">Oregon Spatial Data Library</a></p2><br>
<p2>Dams/Canals/Pipelines: Digitized from Satellite Imagery</p2><br>
<p2 style="font-size:20px">Text Data</p2><br>
<p2>United States Bureau of Reclamation</p2><br/>
<p2>Oregon Public Broadcasting</p2><br/>
<p2>Oregon State University</p2><br/>
</div>
<div class="modal-footer">
<p2>Created with Leaflet</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="http://facebook.com/sharer.php?u=http://oregonwater.info/umatilla.html" target="_blank"></a>
<a class="fa fa-twitter-square social3" style="font-size: 8em; display:inline;" href="http://twitter.com/home?status=Oregon's%20Groundwater%0Ahttp%3A//oregonwater.info/umatilla.html" target="_blank"></a>
<a class="fa fa-github-square social3" style="font-size: 8em; display:inline;" href="http://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);
}
}
});
//dams
function damSize(string){
if (string == "COLD SPRINGS RES. (USBR)" | string == "MCKAY RES. (USBR)") {return 15}
else if (string == "MCNARY DAM"){return 0}
else {return 13}
}
//rivers
function riverSize(density){
if (density==1){return 3}
else if (density==2){return 2}
else if (density==3){return 1}
else {return 1}
}
function riverStyle(feature) {
return {
color: '#3366cc',
opacity: 0.8,
weight: riverSize(feature.properties.type_num)
};
}
function riverSize2(density){
if (density==1){return 3}
else if (density==2){return 1}
else if (density==3){return 1}
else {return 1}
}
function riverStyle2(feature) {
return {
color: '#3366cc',
opacity: 0.8,
weight: riverSize2(feature.properties.type_num)
};
}
function riverSize3(density){
if (density==1){return 0}
else if (density==2){return 1}
else if (density==3){return 1}
else {return 1}
}
function riverStyle3(feature) {
return {
color: '#3366cc',
opacity: 0.8,
weight: riverSize3(feature.properties.type_num)
};
}
function projectSize(density){
if (density=='pipe'){return '#000000'}
else {return '#000000'}
}
function projectDash(density){
if (density=='pipe'){return '7'}
else {return ''}
}
function projectStyle(feature) {
return {
color: projectSize(feature.properties.Type),
dashArray: projectDash(feature.properties.Type),
opacity: 0.8,
weight: 3
};
}
function projectStyle2(feature) {
return {
color: '#000000',
opacity: 0.8,
weight: 1
};
}
function highlightRiver(e) {
var layer = e.target;
layer.setStyle({
fillOpacity: 1,
color: '#adc2eb',
});
}
function resetRiver(e) {
var layer = e.target;
layer.setStyle({
fillOpacity: 0.8,
color: '#3366cc',
});
}
//city style
var city_style = {fillColor: '#a6a6a6', fillOpacity: .6, color: '#a6a6a6', radius: 1, opacity: 0.6, weight: 1};
function city_style2(feature){
return {fillColor: '#a6a6a6', fillOpacity: cityOpacity(feature.properties.CITY_NAME), color: '#a6a6a6', radius: 1, opacity: cityOpacity(feature.properties.CITY_NAME), weight: 1};
}
function cityOpacity(string){
if (string == "Hermiston" || string == "Pendleton") {return 0.6}
else {return 0}
}
//reservation
var reservation_style = {fillColor: '#f4f0bd', fillOpacity: .6, color: '#f4f0bd', radius: 1, opacity: 0, weight: 1};
//lakes
function lake_style(feature){
return {fillColor: '#3366cc', fillOpacity: lakeOpacity(feature.properties.GNIS_Name), color: '#3366cc', radius: 1, opacity: 0, weight: 1};
}
function lakeOpacity(string){
if (string == "Lake Umatilla" || string == "Lake Wallula" ) {return 0}
else {return 1}
}
function highlightLake(e) {
var layer = e.target;
layer.setStyle({
fillColor: '#adc2eb',
});
}
function resetLake(e) {
var layer = e.target;
layer.setStyle({
fillColor: '#3366cc',
});
}
//irrigation
var irrigation_style = {fillColor: '#ffb3b3', fillOpacity: .6, color: '#ffb3b3', radius: 1, opacity: 0, weight: 1};
var roadStyle = {
color: '#d9d9d9',
opacity: 0.8,
weight: 1.5
}
var layers = {
'dams' : [L.geoJson.ajax('assets/umatilla/umatilla_rivers.json', {
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng, {
color: '#ffffff',
fillColor: damColor(feature.properties.Decade),
radius: damSize(feature.properties.storage),
opacity: 1,
fillOpacity: 1,
weight: 0.5
}
).bindTooltip(feature.properties.dam_name + " : " + feature.properties.storage + " Acre-ft" + "<br>" + "Completed: " + feature.properties.date_com_1, {className: 'label_tooltip'});
}
})],
'rivers': [L.geoJson.ajax('assets/umatilla/umatilla_rivers.json', {
style:riverStyle, onEachFeature: function(feature, featureLayer) {
if (feature.properties.type != 'canal'){
featureLayer.bindTooltip(feature.properties.NAME, {className: 'label_tooltip', sticky:true});
featureLayer.on({
mouseover: highlightRiver,
mouseout: resetRiver
})
}
}}
)],
'rivers2': [L.geoJson.ajax('assets/umatilla/umatilla_rivers.json', {
style:riverStyle2, onEachFeature: function(feature, featureLayer) {
if (feature.properties.type != 'canal'){
featureLayer.bindTooltip(feature.properties.NAME, {className: 'label_tooltip', sticky:true});
featureLayer.on({
mouseover: highlightRiver,
mouseout: resetRiver
})
}
}}
)],
'rivers3': [L.geoJson.ajax('assets/umatilla/umatilla_rivers.json', {
style:riverStyle3, onEachFeature: function(feature, featureLayer) {
if (feature.properties.type != 'canal'){
featureLayer.bindTooltip(feature.properties.NAME, {className: 'label_tooltip', sticky:true});
featureLayer.on({
mouseover: highlightRiver,
mouseout: resetRiver
})
}
}}
)],
'cities': [L.geoJson.ajax('assets/umatilla/umatilla_cities.json',
{style:city_style, onEachFeature: function(feature, featureLayer) {
if (feature.properties.CITY_NAME == 'Pendleton' || feature.properties.CITY_NAME == 'Hermiston'){
featureLayer.bindTooltip(feature.properties.CITY_NAME, {className: 'label_tooltip2', permanent: true, offset: L.point({x: 0, y: 0})});
} else if (feature.properties.CITY_NAME == 'Stanfield' || feature.properties.CITY_NAME == 'Echo'){
featureLayer.bindTooltip(feature.properties.CITY_NAME, {className: 'label_tooltip3', permanent:true, offset: L.point({x: -2, y: 0})});
} else{
featureLayer.bindTooltip(feature.properties.CITY_NAME, {className: 'label_tooltip3', permanent:true, offset: L.point({x: 6, y: 0})});
}
}, interactive:false, pane:'background'}
)],
'cities2': [L.geoJson.ajax('assets/umatilla/umatilla_cities.json',
{style:city_style2, onEachFeature: function(feature, featureLayer) {
if (feature.properties.CITY_NAME == 'Hermiston'){
featureLayer.bindTooltip(feature.properties.CITY_NAME, {className: 'label_tooltip2', permanent: true, offset: L.point({x: 0, y: 0})});
} else if (feature.properties.CITY_NAME == 'Pendleton'){
featureLayer.bindTooltip(feature.properties.CITY_NAME, {className: 'label_tooltip2', permanent: true, offset: L.point({x: -40, y: 0})});
}
}, interactive:false, pane:'background'},
)],
'reservation': [L.geoJson.ajax('assets/umatilla/umatilla_reservation.json',
{style:reservation_style, onEachFeature: function(feature, featureLayer) {
}, interactive:false, pane:'background'}
)],
'lakes': [L.geoJson.ajax('assets/umatilla/umatilla_lakes.json',
{style:lake_style, onEachFeature: function(feature, featureLayer) {
featureLayer.bindTooltip(feature.properties.GNIS_Name, {className: 'label_tooltip'});
featureLayer.on({
mouseover: highlightLake,
mouseout: resetLake
})
}}
)],
'irrigation': [L.geoJson.ajax('assets/umatilla/umatilla_irrigation_districts.json',
{style:irrigation_style, onEachFeature: function(feature, featureLayer) {
}, interactive:false, pane:'background'}
)],
'labels': [L.tileLayer('http://{s}.basemaps.cartocdn.com/light_only_labels/{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,
})],
'dams' : [L.geoJson.ajax('assets/umatilla/umatilla_dams.json', {
pointToLayer: function (feature, latlng) {
var bottleIcon = new L.Icon({
iconUrl: 'img/xmarker_blue.png',
iconSize: [damSize(feature.properties.dam_name),damSize(feature.properties.dam_name)],
iconAnchor: [0, 0]
});
return marker = L.marker(latlng,{icon: bottleIcon});
},
onEachFeature: function (feature, layer) {
layer.bindTooltip(feature.properties.dam_name, {className: 'label_tooltip', sticky: true});
}
})],
'projectPoints' : [L.geoJson.ajax('assets/umatilla/umatilla_project_points.json', {
pointToLayer: function (feature, latlng) {
var bottleIcon = new L.Icon({
iconUrl: 'img/pump_marker.png',
iconSize: [14,14],
iconAnchor: [7, 0]
});
return marker = L.marker(latlng,{icon: bottleIcon});
},
onEachFeature: function (feature, layer) {
layer.bindTooltip(feature.properties.name, {className: 'label_tooltip', sticky: true});
}
})],
'projectLines': [L.geoJson.ajax('assets/umatilla/umatilla_project_lines.json', {
style:projectStyle, onEachFeature: function(feature, featureLayer) {
featureLayer.bindTooltip(feature.properties.NAME, {className: 'label_tooltip', sticky:true});
}}
)],
'projectLines2': [L.geoJson.ajax('assets/umatilla/umatilla_project_lines.json', {
style:projectStyle2, onEachFeature: function(feature, featureLayer) {
featureLayer.bindTooltip(feature.properties.NAME, {className: 'label_tooltip', sticky:true});
}}
)],
'roads': [L.geoJson.ajax('assets/umatilla/oregon_primary_light.json', {
style:roadStyle, interactive:false}
)],
'roads2': [L.geoJson.ajax('assets/umatilla/oregon_interstate_light.json', {
style:roadStyle, interactive:false}
)]
};
var scenes = {
overview: {lat: 44.1347254, lng:-122.7411479, zoom: 7, position:'fullpage'},
basin: {lat: 45.6025, lng:-119.3239, zoom: 9, layers:['rivers']},
river: {lat: 45.6851, lng:-119.2007, zoom: 10, layers:['reservation','irrigation','cities','rivers','lakes','roads','roads2']},
reservation: {lat: 45.6373, lng:-118.6799, zoom: 11, layers:['reservation','rivers2']},
settlements: {lat: 45.7256, lng:-119.1702, zoom: 11, layers:['reservation','cities2','rivers2']},
irrigation: {lat: 45.7869, lng:-119.4496, zoom: 11, layers:['reservation','irrigation','cities','rivers2']},
usbr: {lat: 45.7869, lng:-119.4496, zoom: 11, layers:['reservation','irrigation','cities','lakes','rivers','dams','lakes']},
mckay: {lat: 45.6163, lng:-118.8280, zoom: 12, layers:['reservation','irrigation','cities','lakes','rivers','dams','lakes']},
status: {lat: 45.6851, lng:-119.2007, zoom: 10, layers:['reservation','irrigation','cities','rivers','lakes']},
drying: {lat: 45.6851, lng:-119.2007, zoom: 10, layers:['reservation','irrigation','cities','rivers','lakes']},
conflict: {lat: 45.6442, lng:-118.8362, zoom: 12, layers:['reservation','irrigation','cities','rivers2','lakes']},
solution1: {lat: 45.7869, lng:-119.4496, zoom: 11, layers:['reservation','irrigation','cities','rivers2','lakes']},
solution2: {lat: 45.8576, lng:-119.2580, zoom: 12, layers:['reservation','irrigation','cities','rivers2','lakes','projectLines', 'projectPoints']},
solution3: {lat: 45.6163, lng:-118.8280, zoom: 12, layers:['reservation','irrigation','cities','rivers2','lakes']},
fishReturn: {lat: 45.6851, lng:-119.2007, zoom: 10, layers:['reservation','irrigation','cities','rivers2','lakes','roads','roads2','projectLines2']},
end: {lat: 45.6851, lng:-119.2007, 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://localhost:8080/geoserver/basemap/wms", {
layers: 'basemap:basemap_dark',
format: 'image/png',
minZoom: 6,
maxZoom: 15,
transparent: true,
attribution: "Created by Gareth Baldrica-Franklin"
}).addTo(map);
L.tileLayer.wms("http://localhost:8080/geoserver/basemap/wms", {
layers: 'basemap:basemap_dark_labels',
format: 'image/png',
minZoom: 6,
maxZoom: 15,
transparent: true,
tiled: true,
tilesorigin: [-180, 90]
}).addTo(map);
var CartoDB_Positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_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 Esri_WorldImagery = L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community',
minZoom: 6,
maxZoom: 15
}).addTo(map);
Esri_WorldImagery.setOpacity(0.3);*/
/*L.tileLayer.wms("http://mapious.ceoas.oregonstate.edu/geoserver/baldricg_basemap/wms", {
layers: 'baldricg_basemap:north_america_green',
format: 'image/png',
minZoom: 6,
maxZoom: 50,
opacity:1,
transparent: true,
}).addTo(map);*/
map.createPane('background');
map.getPane('background').style.pointerEvents = 'none';
map.getPane('background').style.zIndex = 300;
map.createPane('labels');
map.getPane('labels').style.pointerEvents = 'none';
map.getPane('labels').style.zIndex = 700;
var Esri_WorldShadedRelief = L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}', {
attribution: 'Tiles © Esri — Source: Esri',
maxZoom: 13,
opacity:0.2
}).addTo(map);
/*L.tileLayer.wms("http://mapious.ceoas.oregonstate.edu/geoserver/baldricg_atlas/wms", {
layers: 'baldricg_atlas:umatilla_basin',
format: 'image/png',
minZoom: 6,
maxZoom: 15,
opacity:0.5,
transparent: true,
}).addTo(map);
var oregonWater = L.tileLayer.wms("http://mapious.ceoas.oregonstate.edu/geoserver/baldricg_atlas/wms", {
layers: 'baldricg_atlas:gw_counties',
format: 'image/png',
minZoom: 6,
maxZoom: 15,
transparent: true,
}).addTo(map);
oregonWater.setOpacity(0.5);
var oregonCover = L.tileLayer.wms("http://mapious.ceoas.oregonstate.edu/geoserver/baldricg_atlas/wms", {
layers: 'baldricg_atlas:umatilla_cover2',
format: 'image/png',
minZoom: 6,
maxZoom: 15,
transparent: true,
}).addTo(map);
oregonCover.setOpacity(0.7);*/
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.1,
opacity:0.8
});
}
const cover = new L.TopoJSON(null, {
interactive:false
});
$.getJSON('assets/umatilla/umatilla_cover.json')
.done(addCover);
function addCover(topoData) {
cover.addData(topoData);
cover.eachLayer(coverHandle);
cover.addTo(map);
}
function coverHandle(layer){
layer.setStyle({
color: '#bfbfbf',
fillOpacity: 0.3,
weight: 0.1,
opacity:0
});
}
var mini = new L.tileLayer('http://{s}.basemaps.cartocdn.com/light_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 currentZoom = 0;
var miniMap = new L.Control.MiniMap(mini, { toggleDisplay: false});
miniMap.addTo(map);
new L.Control.Zoom({ position: 'bottomright'}).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>