forked from mapbox/storytelling
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
542 lines (542 loc) · 21.9 KB
/
config.js
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
var config = {
style: 'mapbox://styles/rafnuss/ck95nlk5v4c3f1js9cy015v0u',
accessToken: 'pk.eyJ1IjoicmFmbnVzcyIsImEiOiIzMVE1dnc0In0.3FNMKIlQ_afYktqki-6m0g',
showMarkers: false,
markerColor: '#3FB1CE',
projection: 'globe',
//Read more about available projections here
//https://docs.mapbox.com/mapbox-gl-js/example/projections/
inset: true,
//theme: 'dark',
//use3dTerrain: true, //set true for enabling 3D maps.
//title: 'A STORY OF SEA GRASS',
//subtitle: "Seagrass has long been overlooked in marine ecology. But it’s an essential element of the marine world. Let’s dive in to Watamu Marine Park, off the Coast of Kenya, to take a closer look.",
//byline: 'By a A Rocha Kenya',
//footer: 'Source: source citations, etc. <br> Created using <a href="https://github.com/mapbox/storytelling" target="_blank">Mapbox Storytelling</a> template.',
chapters: [
{
id: 'intro-empty',
alignment: 'left',
hidden: false,
content: '',
location: {
center: [0, 0],
zoom: 1,
pitch: 0,
bearing: 0
},
mapAnimation: 'flyTo',
rotateAnimation: false,
callback: '',
onChapterEnter: [],
onChapterExit: []
},
{
id: 'chap1',
content: '<h3>Welcome to Kenya!</h3>\
<p>About 8% of the Kenya’s land mass is protected for wildlife conservation. For many of us, Kenya is the land of safaris, lions, giraffes and elephants. Few of us think oOut of the 61 parks and reserves in the country: 10 are marine <img class="svg-txt" src="./assets/aquarium-15_blue.svg"> while 51 are terrestrial <img class="svg-txt" src="./assets/park-15.svg">. </p>\
<p>Established 52 years ago, <b>Watamu Marine Park and Reserve</b> is one of Kenya’s first marine parks.</p>\
<img class="image-wrapper" src="./assets/intro/18931295584_77ad5acf0e_k.jpg"/>\
<p class="caption">Jaap Gijsbersten</p>\
',
bbox: [[38.01216, -0.52813], [41.63761, -5.65162]],
location: {
center: [36.78383, -3.31936],
zoom: 6.5,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [{
layer: 'landuse-overlay',
opacity: .7
}, {
layer: 'poi-label',
opacity: 1
}, {
layer: 'marineplace',
opacity: 1
}, {
layer: 'reserve-boundary',
opacity: 1
}],
onChapterExit: [{
layer: 'landuse-overlay',
opacity: 0
}, {
layer: 'poi-label',
opacity: 0
}, {
layer: 'marineplace',
opacity: 0
}, {
layer: 'reserve-boundary',
opacity: 0
}]
},
/*{
id: 'full-reserve',
content: '<h4>What\'s the difference between park and reserve?</h4>\
<p>In parks, there is complete protection of natural resources and the only activities allowed are tourism and research.</p>\
<p>In reserves, human activities, such as fishing, are allowed under specific conditions. </p>\
<p>The Watamu Marine Reserve stretches over 170km<sup>2</sup>. </p>\
',
location: {
center: [39.99527, -3.32961],
zoom: 10,
pitch: 0,
bearing: 0
},
onChapterEnter: [],
onChapterExit: []
},*/
{
id: 'full-park',
content: '\
<h4>Watamu Marine Park: a biodiversity hotspot</h4>\
<p>The Malindi-Watamu Reserve includes two no-take national parks: one in Malindi, and the other in Watamu.</p>\
<p>In just 10km<sup>2</sup>, the Watamu Marine Park is home to over 600 species of fish, over 150 species of soft and hard corals, 9 species of marine mammals, sharks, rays, and countless nudibranches and invertebrates. \
In total, 18 species are of conservation concern according to the IUCN Red List.</p>\
<img class="image-wrapper" src="./assets/section1/dolphins.jpg"/>\
',
bbox: [[39.89901, -3.25715], [40.22991, -3.41009]],
location: {
center: [39.86751, -3.40707],
zoom: 10,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [{
layer: 'park-boundary',
opacity: 1
}, {
layer: 'reserve-boundary',
opacity: 0.2
}],
onChapterExit: [{
layer: 'park-boundary',
opacity: 0
}, {
layer: 'reserve-boundary',
opacity: 0
}]
},
/*{
id: 'full-park-2',
content: '\
<p> It covers an area of 10square kms, going down to 10m deep. </p>\
',
location: {
center: [39.98451, -3.37994],
zoom: 13,
pitch: 0,
bearing: 0
},
onChapterEnter: [],
onChapterExit: []
},*/
{
id: 'coral',
content: '\
<h4>More than a coral reef</h4>\
<p>A marine park conjures up images of coral reefs. And there is one in Watamu!</p>\
<p>The reef provides important habitat and nutrients for a high number of species.</p>\
<p>But it represents only a very small portion of the park.</p>\
<ul class="fa-ul ul-legend">\
<li class="li-hover" value="coral"><span class="fa-li" style="color:#c500ff;"><i class="fas fa-square"></i></span>Coral</li>\
</ul>\
<img class="image-wrapper" src="./assets/intro/Toby_Hudson.jpg"/>\
<p class="caption">Toby Hudson, Flynn Reef</p>\
',
bbox: [[39.95001, -3.34862], [40.02934, -3.40282]],
location: {
center: [39.94648, -3.38389],
zoom: 12.8,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [{
layer: 'coral',
opacity: .9
}],
onChapterExit: [{
layer: 'coral',
opacity: 0
}]
},
/*{
id: 'coral-layer',
content: '\
<p>But actually, this reef only represents X% of the park.</p>\
<ul class="fa-ul ul-legend">\
<li class="li-hover" id="coral"><span class="fa-li" style="color:#c500ff;"><i class="fas fa-square"></i></span>Coral</li>\
</ul>\
',
location: {
center: [39.98451, -3.37994],
zoom: 13,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [{
layer: 'coral',
opacity: .9
}],
onChapterExit: [{
layer: 'coral',
opacity: 0
}]
},*/
{
id: 'seagrass',
content: '\
<h4>Seagrass - the hidden star of the park</h4>\
<p>40% of the park is covered in seagrass. Sounds boring? Watamu Marine Park features 11 of the 12 species of seagrass found in Kenya, one of which is listed as Vulnerable by the IUCN Red List.</p>\
<img class="image-wrapper" src="./assets/Seagrass%20Dimitris%20Poursanidis/48287898577_0b61f7f3ce_k.jpg"/>\
<p class="caption">Dimitris Poursanidis/GRID-Arendal</p>\
<p>Seagrass provide many ecological services to the Park fauna and flora: carbon storage, feeding grounds, habitat and nursery areas for many species.</p>\
<ul class="fa-ul ul-legend">\
<li class="li-hover" value="coral"><span class="fa-li" style="color:#c500ff;"><i class="fas fa-square"></i></span>Coral</li>\
<li class="li-hover" value="intertidal-seagrass"><span class="fa-li" style="color:#cdf57a;"><i class="fas fa-square"></i></span>Intertidal Seagrass</li>\
<li class="li-hover" value="subtidal-seagrass"><span class="fa-li" style="color:#73b273;"><i class="fas fa-square"></i></span>Subtidal Seagrass</li>\
</ul>\
<p>Most species in the Park rely on seagrass for their survival, from the smallest to the biggest. Let’s take a look! </p>\
',
bbox: [[39.95001, -3.34862], [40.02934, -3.40282]],
location: {
center: [39.94648, -3.38389],
zoom: 12.8,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [{
layer: 'subtidal-seagrass',
opacity: .8
},
{
layer: 'intertidal-seagrass',
opacity: .8
},
{
layer: 'coral',
opacity: .8
}],
onChapterExit: [{
layer: 'subtidal-seagrass',
opacity: 0
},
{
layer: 'intertidal-seagrass',
opacity: 0
},
{
layer: 'coral',
opacity: 0
}]
},
/*{
id: 'depth',
content: '\
<h4>Depth of water</h4>\
<ul class="fa-ul ul-legend">\
<li class="li-hover" value="littoral"><span class="fa-li" style="color:#734c00;"><i class="fas fa-square"></i></span>Littoral</li>\
<li class="li-hover" value="beach"><span class="fa-li" style="color:#ffffbe;"><i class="fas fa-square"></i></span>Beach</li>\
<li class="li-hover" value="intertidal"><span class="fa-li" style="color:#cdf57a;"><i class="fas fa-square"></i></span>Intertidal</li>\
<li class="li-hover" value="0-2m"><span class="fa-li" style="color:#26b4ff;"><i class="fas fa-square"></i></span>0-2m</li>\
<li class="li-hover" value="2-5m"><span class="fa-li" style="color:#0b19cd;"><i class="fas fa-square"></i></span>2-5m</li>\
<li class="li-hover" value="5-10m"><span class="fa-li" style="color:#1c0189;"><i class="fas fa-square"></i></span>5-10m</li>\
</ul>\
',
location: {
center: [39.98451, -3.37994],
zoom: 13,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [{
layer: '0-2m',
opacity: .9
},{
layer: '2-5m',
opacity: .9
},{
layer: '5-10m',
opacity: .9
},{
layer: 'beach',
opacity: .9
},{
layer: 'intertidal',
opacity: .9
},{
layer: 'littoral',
opacity: .9
}],
onChapterExit: [{
layer: '0-2m',
opacity: 0
},{
layer: '2-5m',
opacity: 0
},{
layer: '5-10m',
opacity: 0
},{
layer: 'beach',
opacity: 0
},{
layer: 'intertidal',
opacity: 0
},{
layer: 'littoral',
opacity: 0
}]
},*/
{
id: 'reserve',
content: '\
<h3>Echinoderms rely on seagrass to hide and feed</h3>\
<p>Echinoderms group all the invertebrate marine organisms (sea urchins, starfish, cucumbers, etc.).</p>\
<p>They form almost 90% of marine wildlife, and play a key ecological role in ecosystems: they regulate populations, clean the sand and ocean, and provide oxygen to the environment. </p>\
<p>Seagrass is one of their main habitats, where they like to hide and feed. </p>\
<img class="image-wrapper" src="./assets/section1/Protoreaster-lincki-Bobby-Sluka_small.png"/>\
<p class="caption">Red-knobbed Starfish, Bob Sluka</p>\
',
location: {
center: [39.98451, -3.37994],
zoom: 12,
pitch: 0,
bearing: 0
},
callback: '',
onChapterEnter: [],
onChapterExit: []
},
{
id: 'slug-style-id',
content: '<h4>Turtles graze and breed in seagrass</h4>\
<p>Seagrass and sea turtles are highly interdependent.</p>\
<p>While turtles graze the seagrass for feeding, they regulate their overgrowth and increase the productivity and nutrient content of seagrass blades.</p>\
<video class="image-wrapper" src="./assets/Seagrass%20Dimitris%20Poursanidis/1080p.mp4" autoplay="" loop="" muted="" playsinline=""></video>\
',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
rotateAnimation: true,
callback: '',
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
},
{
id: 'slug-style-id',
content: '<h4>All the way to the threatened guitarfish</h4>\
<p>The critically endangered Halavi Guitarfish uses seagrass as nursery grounds. This habitat is absolutely critical for the survival of this species, and others in this family.</p>\
<p>We need to understand seagrass better to protect this species more effectively.</p>\
<img class="image-wrapper" src="./assets/section1/Guitarfish_small.png"/>\
<p class="caption">Halavi Guitarfish, A Rocha International</p>\
',
callback: '',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}, {
id: 'slug-style-id',
content: '<h4>This seagrass is under threat</h4>\
<p>Seagrasses have been disappearing at a rate of 110 km2/yr since 1980 (Waycott et al, 2009). Close to a third of the known areal extent has disappeared since seagrass areas were initially recorded in 1879. Even more alarmingly, the rates of decline have accelerated since 1990.</p>\
<p>Seagrass loss rates are now comparable to those reported for mangroves, coral reefs, and tropical rainforests and place seagrass meadows among the most threatened ecosystems on earth.</p>\
<p>But what could possibly threaten grass, you may ask?</p>\
<img class="image-wrapper" src="./assets/Seagrass%20Dimitris%20Poursanidis/48287799826_937e033e43_c.jpg"/>\
<p class="caption">Dimitris Poursanidis/GRID-Arendal</p>\
',
callback: '',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}, {
id: 'slug-style-id',
content: '<h4>Danger#1: human constructions</h4>\
<p>Since the first hotel built in 1951, the coast of Watamu has gradually been built up, and is now a top-ranked beach destination in Africa.</p>\
<p>This coastal development has adverse effects on shallow seagrasses.</p>\
<img class="image-wrapper" src="./assets/Seagrass Dimitris Poursanidis/Close_up_seagrass.jpg"/>\
<p class="caption">Find photo of coastline</p>\
',
callback: '',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}, {
id: 'slug-style-id',
content: '<h4>Danger#2: Sedimentation in Sabaki</h4>\
<p>30km north of Watamu Marine Park is Sabaki River Mouth, where illegal sand mining is common practice. </p>\
<p>The ensuing sediment washed into the water damages seagrass beds by both smothering the seagrass and blocking sunlight.</p>\
<img class="image-wrapper" src="./assets/section2/sand-mining.png"/>\
<p class="caption">Sand mining</p>\
',
callback: '',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}, {
id: 'slug-style-id',
content: '<h4>Danger#3: Climate change</h4>\
<p>About 80% of the excessive heat from climate change is absorbed by the ocean (Duarte et al. 2018). As a result, the ocean is the warmest it has ever been. Not only this, but climate change also comes with ocean acidification and more frequent weather events. </p>\
<p>This adversely impacts seagrass seedling mortality and may alter seagrass feeding dynamics, offsetting the fine ecological balance of this ecosystem.</p>\
<img class="image-wrapper" src="./assets/section2/annual_global_sea_surface_temperature_anomalies_from_1880_to_2015_0.png"/>\
<p class="caption">Rise in Ocean Temperature, IUCN</p>\
',
callback: '',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}, {
id: 'slug-style-id',
content: '<h4>What can we do?</h4>\
<p>At A Rocha Kenya, we monitor seagrass presence in the park, to better understand this habitat. </p>\
<p>We regularly survey what seagrass is present along transects in various places of the park and have developed a seagrass identification guide, to help partners, citizen scientists and researchers join in the process.</p>\
<img class="image-wrapper" src="./assets/Seagrass%20Dimitris%20Poursanidis/Seagrass_3_Photo_by_Dimitris_Poursanidis_GRID-Arendal.jpg_resized.jpg"/>\
<p class="caption">Dimitris Poursanidis/GRID-Arendal</p>\
',
callback: '',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}, {
id: 'slug-style-id',
content: '<h4>How about you?</h4>\
<img class="image-wrapper" src="./assets/Seagrass%20Dimitris%20Poursanidis/48287804936_762e651a69_c.jpg"/>\
<p class="caption">Dimitris Poursanidis/GRID-Arendal</p>\
<p>How can you help save the seagrass?</p>\
<p>Be a responsible tourist</p>\
<p>Limit your carbon impact</p>\
<p>Come volunteer with us!</p>\
<p>Share this story, tell your friends! </p>\
',
location: {
center: [39.98451, -3.37994],
zoom: 12.75,
pitch: 60,
bearing: -32.81
},
onChapterEnter: [
// {
// layer: 'layer-name',
// opacity: 1
// }
],
onChapterExit: [
// {
// layer: 'layer-name',
// opacity: 0
// }
]
}
]
}