-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
523 lines (453 loc) · 27.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
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
<!DOCTYPE html>
<html lang="en" xmlns:left="http://www.w3.org/1999/xhtml">
<head>
<title>Djibouti Stunting</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--animation-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<!--use a better font for this web map-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="css/leaflet.awesome-markers.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/storymap.css">
<!--add favicon for the web page-->
<link rel="shortcut icon" href="img/Djibouti.ico" type="image/x-icon">
<!--add required libraries-->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://www.google.com/jsapi"></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://cdnjs.cloudflare.com/ajax/libs/leaflet-ajax/2.1.0/leaflet.ajax.min.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="js/leaflet.awesome-markers.js"></script>
<!-- Line&Bar Chart-->
<script src="js/LineChart.js"></script>
<script src="js/BarChart.js"></script>
<script src="js/Serve_Stu.js"></script>
<script src="js/Serve_Was.js"></script>
<!--story map plugin-->
<script src="js/storymap.js"></script>
<!-- style of start backgound picture -->
<style>
.WB-logo-img {
background: url(img/worldbank.png) no-repeat ;
position: fixed;
left: 70%;
z-index: 1;
width: 20%;
height: auto;
}
.start-background-img {
background: url(img/Banner.jpg) no-repeat center;
}
.overview-background-img{
background: url(img/li.jpeg) no-repeat center fixed;
}
.desert-background-img{
background: url("img/desert.jpg") no-repeat center fixed;
}
.white-background-img{
background: url(img/white.JPG) no-repeat center;
}
#map { position:right; top:3%; bottom:3%; width:70%;}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-4 main">
<section data-scene="cover" >
<div class="WB-logo-img background-fullscreen-setting"></div>
<div class="start-background-img background-fullscreen-setting text-responsive text-center" style="background-size: cover">
<h3 style="
position:relative;
top: 40%;
text-align: center;
font-size:3.5vw;
background-color: hsla(78, 100%, 0%, 0.59);
padding-top: 20px;
padding-bottom: 15px;
"> Djibouti Stunting <br/>
<!--<p style="font-size:20px;">a World Bank Group project</p>-->
</h3>
</div>
<!-- <div class="background-fullscreen-setting text-responsive text-center">
<p style="font-size:19px;
position: relative;
top: 60%;
font-weight: bold;
color: white;
text-align: center;">
Good nutrition is critical for the growth and development of babies and children during their first 1,000 days of life – from pregnancy to a child’s second birthday.</br>
During this critical time, malnutrition can cause irreversible damage to children’s brain development and their physical growth, putting them at increased risk of developing chronic illnesses later in life.
</p>
</div>-->
</section>
<section data-scene="Problem_Stunting">
<h2 style="font-size:2vw;">Problem of Stunting</h2></br>
<p style="font-size:1vw;">Stunting is a major public health problem in Djibouti.
<strong>The current level of stunting in Djibouti is <font color="#D85B3C">30 percent</font></strong>, which exceeds the WHO severity thresholds of <font color="#5676B8">20 percent</font>.
The main causes of stunting in Djibouti include low access to and utilization to of basic health services,
high levels of food insecurity and poor environmental health (water, sanitation and hygiene). </p>
</br>
<div class="clearfix"></div>
<div id="LineChart" class="chart"></div>
<!--<div id="curve_chart" class="img-responsive" alt="responsive image" style= "margin-left: auto;margin-right: auto;"></div>
<!--<img src="img/StuntingCycle.jpg" class="img-responsive" alt="responsive image" style= "margin-left: auto;margin-right: auto;">
</br>
</br>
<img src="img/stuntingcosts.jpg" class="img-responsive" alt="responsive image" style= "margin-left: auto;margin-right: auto;">-->
</br>
</section>
<section data-scene="Djibouti_Locating_Stu">
<h2 style="font-size:2vw;">Stunting</h2></br>
<p style="font-size:1vw;;"><strong>All of the regions in Djibouti have critical levels of stunting</strong> (i.e. over 30 percent).
The prevalence of stunting is <strong>higher among rural residents</strong>, compared to their urban counterparts (42.3% vs. 30.0%).
<strong>Obock, Dikhil and Tadjourah</strong> regions have the highest stunting rates at 45.9%, 44.2% and 40.8%, respectively.</p></br>
</br>
<div class="clearfix"></div>
<div id="Serve_Stu" class="chart"></div>
<!--<div id="Serve_Stu" style="width: 500px; height: 380px"></div>-->
</section>
<section data-scene="Djibouti_Locating_Was">
<h2 style="font-size:2vw;">Wasting</h2></br>
<p style="font-size:1vw;"><strong>The current level of wasting in Djibouti is 17.8 percent</strong>, which exceeds the WHO severity thresholds of 5 percent.
</br></br>
<strong>All regions in Djibouti have critical levels of wasting (i.e. over 10 percent). Obock, Djibouti City and Tadjourah </strong>regions have the highest wasting rates at 25.7%, 17.9% and 16.4%, respectively. </p>
<div class="clearfix"></div>
<div id="Serve_Was" class="chart"></div>
<!-- <div id="Serve_Was" style="width: 500px; height: 380px"></div>-->
</section>
<section data-scene="Health_Service">
<h2 style="font-size:2vw;">What's the cause of stunting?</h2>
<h4 style='font-size:1.5vw;font-weight: bolder' >Determinant 1: Quality/access to health services</h4></br>
<p style="font-size:1vw;"><strong>Only 23% of women receive four or more antenatal care visits,</strong>
and just over half (54%) of women are receiving any form of postnatal care. Children
fully immunized by their first birthday ranges from 70% to 80% in urban areas and from 40% to 50% in rural areas.</p>
</br>
<img src="img/Women.png" class="img-responsive" alt="responsive image" style= "margin-left: auto;margin-right: auto;">
</section>
<section data-scene="Food_Security">
<h2 style="font-size:2vw;">What's the cause of stunting?</h2>
<h4 style='font-size:1.5vw;font-weight: bolder' >Determinant 2: Food Security</h4></br>
<p style="font-size:1vw;"><strong>Food insecurity is a persistent problem across Djibouti. With limited arable land, low rainfall and prolonged droughts, agriculture production and livelihoods are severely affected.</strong>
<p style="font-size:1vw;text-align: justify;">Agriculture is almost nonexistent, accounting only for about 3 percent of GDP and 2 percent of employment.</p>
<p style="font-size:1vw;;text-align: justify;">Food insecurity high across the country, 75% of the rural population food insecure and 20% in Djibouti City.</p>
<p style="font-size:1vw;text-align: justify;">As a result, an alarmingly low percentage of children are consuming a minimum acceptable diet (i.e., at least four food groups and three meals per day) and getting the right nutrients to
grow and thrive.</p></br>
<img src="img/arid2.JPG" class="img-responsive" alt="responsive image" style= "margin-left: auto;margin-right: auto;">
</p>
</section>
<section data-scene="Wash">
<h2 style="font-size:2vw;">What's the cause of stunting?</h2>
<h4 style='font-size:1.5vw;font-weight: bolder' >Determinant 3: Poor Sanitation</h4></br>
<p style="font-size:1vw;">There are countrywide challenges in accessing improved water sources and sanitation.</p>
<p style="font-size:1vw;">Only 47% of the population has access to improved sanitation facilities (5% in rural areas);
and only 65% of the rural population has access to improved water sources.</p>
<p style="font-size:1vw;">Access to improved sanitation facilities ranges from 60% in urban areas to just 5% in rural areas .</p></br>
<img src="img/water.png" class="img-responsive" alt="responsive image" style= "margin-left: auto;margin-right: auto;"></br>
<div id="Sanitation"></div>
<!-- <div id="Sanitation" style="width: 500px; height: 300px"></div>-->
</section>
<!--<section data-scene="Wash2">
<h2>What's the cause of stunting?</h2>
<h4 style='font-weight: bolder' >Determinant 3: Poor Sanitation</h4></br>
<div id="Sanitation" style="width: 500px; height: 300px"></div>
</section>-->
<section data-scene="end">
<div class=" background-fullscreen-setting" >
<div class="white-background-img background-fullscreen-setting text-responsive text-center" style="background-size: cover">
<div style="
bottom: 15%;
padding-top: 5%;
padding-left: 25%;
">
<video autoplay muted loop style=" width: 70%; overflow:hidden;z-index: -1">
<source src="assets/Stunting.mp4" type="video/mp4">
</video>
</div>
<div style="
padding-top: 3%;
padding-left: 10%;
padding-right: 10%;
width: 100%;
height: 100%;">
<p style="
font-size:1vw;
color:white;
text-align: justify;
background-color: hsla(78, 100%, 0%, 0.59);
padding-top: 10px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 20px;">
Recognizing the human and economic costs of childhood malnutrition, the World Bank has increased its investments globally to improve the nutrition and cognitive development of children in their early years.</br>
In Djibouti, levels of stunting and wasting remain at critical levels despite recent efforts to address both conditions. The new World Bank project “Towards Zero Stunting in Djibouti” is a $15 million IDA financed project, approved on July 9, 2018, that will increase support to end stunting and ensure that children are given the opportunity to survive and thrive.</br>
The project involves the implementation of an enhanced package of core nutrition interventions including: growth monitoring and promotion, micronutrient supplementation, nutrition and health interventions for women (antenatal care visits, iron/folic acid supplementation, etc.), and improved sanitation and hygiene practices, along with the use of new and innovative approaches to accelerate progress.</br>
The primary technological innovation in this project is the use of programmatic and geospatial mapping to improve outreach to vulnerable and otherwise hard-to-reach households; assist with the tracking of children and mothers affected and at-risk of stunting, and map current and available health services. </p>
</div>
</div>
</div>
</section>
<section data-scene="end1">
<div class=" background-fullscreen-setting" >
<div class="white-background-img background-fullscreen-setting text-responsive text-center" style="background-size: cover">
<div>
<h1> Project</h1>
</div>
<div style="
bottom: 15%;
padding-top: 5%;
padding-left: 25%;
padding-right: 20%;
">
<p style="
font-size:1vw;
color:white;
text-align: justify;
background-color: hsla(78, 100%, 0%, 0.59);
padding-top: 10px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 20px;">
Recognizing the human and economic costs of childhood malnutrition, the World Bank has increased its investments globally to improve the nutrition and cognitive development of children in their early years.</br>
In Djibouti, levels of stunting and wasting remain at critical levels despite recent efforts to address both conditions. The new World Bank project “Towards Zero Stunting in Djibouti” is a $15 million IDA financed project, approved on July 9, 2018, that will increase support to end stunting and ensure that children are given the opportunity to survive and thrive.</br>
The project involves the implementation of an enhanced package of core nutrition interventions including: growth monitoring and promotion, micronutrient supplementation, nutrition and health interventions for women (antenatal care visits, iron/folic acid supplementation, etc.), and improved sanitation and hygiene practices, along with the use of new and innovative approaches to accelerate progress.</br>
The primary technological innovation in this project is the use of programmatic and geospatial mapping to improve outreach to vulnerable and otherwise hard-to-reach households; assist with the tracking of children and mothers affected and at-risk of stunting, and map current and available health services. </p>
</div>
</div>
</div>
</section>
<section data-scene="end2">
<div class=" background-fullscreen-setting" >
<div class="white-background-img background-fullscreen-setting text-responsive text-center" style="background-size: cover">
<div>
<h1> Methodology</h1>
</div>
<div style="
bottom: 15%;
padding-top: 5%;
padding-left: 25%;
padding-right: 20%
">
<p style="
font-size:1vw;
color:white;
text-align: justify;
background-color: hsla(78, 100%, 0%, 0.59);
padding-top: 10px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 20px;">
Recognizing the human and economic costs of childhood malnutrition, the World Bank has increased its investments globally to improve the nutrition and cognitive development of children in their early years.</br>
In Djibouti, levels of stunting and wasting remain at critical levels despite recent efforts to address both conditions. The new World Bank project “Towards Zero Stunting in Djibouti” is a $15 million IDA financed project, approved on July 9, 2018, that will increase support to end stunting and ensure that children are given the opportunity to survive and thrive.</br>
The project involves the implementation of an enhanced package of core nutrition interventions including: growth monitoring and promotion, micronutrient supplementation, nutrition and health interventions for women (antenatal care visits, iron/folic acid supplementation, etc.), and improved sanitation and hygiene practices, along with the use of new and innovative approaches to accelerate progress.</br>
The primary technological innovation in this project is the use of programmatic and geospatial mapping to improve outreach to vulnerable and otherwise hard-to-reach households; assist with the tracking of children and mothers affected and at-risk of stunting, and map current and available health services. </p>
</div>
</div>
</div>
</section>
</div>
<!--map div-->
<div id="map" class="col-sm-6 col-md-8 sidebar"></div>
</div>
<!--add a scrolling down arrow-->
<div class="animated zoomIn infinite glyphicon glyphicon-menu-down arrow-down"></div>
</div>
<!-- main javascript -->
<script type="text/javascript">
/**
* Created by jakob on 4/20/2017.
*/
// Create Legend Contents in html format
var stu_was_national_legend = '<i style="background: orange; opacity: 0.5"></i><p><b>Stunting&Wasting Rate</b></p>';
var stu_region_legend = '<h7>Stunting Rate</h7></br></br>'+
'<i style="background: #b30000"></i><p><b>45% +</p>'+
'<i style="background: #e34a33"></i><p><b>35% - 45%</p>'+
'<i style="background: #fc8d59"></i><p><b>25% - 35%</p>'+
'<i style="background: #fdcc8a"></i><p><b>15% - 25%</p>'+
'<i style="background: #fef0d9"></i><p><b>0% - 15%</p>';
var cropland_legend = '<h7>Land Use - Land Cover (2016)</h7></br></br>'+
'<i style="background: #fc8d59"></i><p><b>Cropland</p>';
var was_region_legend ='<h7>Wasting Rate</h7></br></br>'+
'<i style="background: #e34a33"></i><p><b>25% +</p>'+
'<i style="background: #fc8d59"></i><p><b>16% - 25%</p>'+
'<i style="background: #fdcc8a"></i><p><b>10% - 16%</p>'+
'<i style="background: #fef0d9"></i><p><b>0% - 10%</p>';
var Buildings_by_distance =
'<h7>Distance to Health Facilities (km)</h7></br></br>'+
'<i style="background: #059931; opacity: 0.9"></i><p><b>0.1</p>'+
'<i style="background: #2CA01C; opacity: 0.9"></i><p><b>0.10 - 0.25</b></p>' +
'<i style="background: #a3db5f; opacity: 0.9"></i><p><b>0.25 - 0.50</b></p>' +
'<i style="background: #d5f582; opacity: 0.9"></i><p><b>0.50 - 0.75</b></p>' +
'<i style="background: #fbfba5; opacity: 0.9"></i><p><b>0.75 - 1.00</b></p>' +
'<i style="background: #edc785; opacity: 0.9"></i><p><b>1.00 - 1.25</b></p>' +
'<i style="background: #f59d4b; opacity: 0.9"></i><p><b>1.25 - 3.50</b></p>' +
'<i style="background: #ff1105; opacity: 0.9"></i><p><b>3.50+</b></p>'+
'<i class="fas fa-circle"style="font-size:15px;color:#ffffff;z-index: 1"></i><p><b>Health Facilities</b></p>';
/* var Sanitation_Coverage_legend= '<h7>Water Source (km)</h7></br></br>'+
'<i style="background: #059931; opacity: 0.9"></i><p><b>0.1</p>'+
'<i style="background: #2CA01C; opacity: 0.9"></i><p><b>0.10 - 0.25</b></p>' +
'<i style="background: #a3db5f; opacity: 0.9"></i><p><b>0.25 - 0.50</b></p>' +
'<i style="background: #d5f582; opacity: 0.9"></i><p><b>0.50 - 0.75</b></p>' +
'<i style="background: #fbfba5; opacity: 0.9"></i><p><b>0.75 - 1.00</b></p>' +
'<i style="background: #edc785; opacity: 0.9"></i><p><b>1.00 - 1.25</b></p>' +
'<i style="background: #f59d4b; opacity: 0.9"></i><p><b>1.25 - 3.50</b></p>' +
'<i style="background: #ff1105; opacity: 0.9"></i><p><b>3.50+</b></p>'+
'<i class="fas fa-circle"style="font-size:15px;color:#45a2e4;z-index: 1"></i><p><b>Well Points</b></p>';*/
var Sanitation_Coverage_legend=
'<h7>Water Source</h7></br></br>'+
'<i class="fas fa-circle"style="font-size:15px;color:#337baa;z-index: 1"></i><p><b>Well Location</b></p>';
// DECLARE STYLES FOR EACH LAYER
function stu_setColor(density){
return density > 0.45 ? '#b30000' :
density > 0.35 ? '#e34a33' :
density > 0.25 ? '#fc8d59' :
density > 0.15 ? '#fdcc8a' :
'#fef0d9';
}
function stu_style(feature) {
return {
fillColor: stu_setColor(feature.properties.stu),
fillOpacity: 0.75,
weight: 1,
opacity: 0.9,
color: '#ffffff',
dashArray: '4'
};
}
function was_setColor(density){
return density > 0.25 ? '#e34a33' :
density > 0.16 ? '#fc8d59' :
density > 0.10 ? '#fdcc8a' :
'#fef0d9';
}
function was_style(feature) {
return {
fillColor: was_setColor(feature.properties.was),
fillOpacity: 0.75,
weight: 1,
opacity: 0.9,
color: '#ffffff',
dashArray: '4'
};
}
function popUp(f,l){
var out = [];
if (f.properties){
for(key in f.properties){
out.push(key+": "+f.properties[key]);
}
l.bindPopup(out.join("<br />"));
}
}
//DECLARE LAYERS AND ASSIGN STYLES
var layers = {
// Base Map Layers
'ESRI': [L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}')],
'satelite': [L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibGlsaWxpIiwiYSI6ImNqamZiczF1czA1bGIzcHAwN2J5NndyaG4ifQ.V5VP-UiOg5Uz8BQK_VqLpg', {
id: 'mapbox.satelite'
})],
'Djibouti_adm0': [L.geoJson.ajax('assets/Djibouti_adm0.geojson',{
color: 'red',
weight: 5
})],
'Djibouti_adm0_n': [L.geoJson.ajax('assets/Djibouti_adm0.geojson',{
color: '#757575',
weight: 1
})],
'Djibouti_adm0_m': [L.geoJson.ajax('assets/Djibouti_adm0.geojson',{
color: '#fc8d59',
weight: 2
})],
'stu_region': [L.geoJson.ajax('assets/Djibouti_adm2.geojson', {
style: stu_style,
onEachFeature: function (feature, layer) {
layer.bindTooltip(feature.properties.stu, {className: 'feature-label', permanent: false, direction: 'center'});
}
}), stu_region_legend],
'was_region': [L.geoJson.ajax('assets/Djibouti_adm2.geojson', {
style: was_style,
onEachFeature: function (feature, layer) {
layer.bindTooltip(feature.properties.was, {className: 'feature-label', permanent: false, direction: 'center'});
}
}), was_region_legend],
'Health_Facilites': [L.geoJson.ajax('assets/HF.geojson', {
style: function(feature) {
return {
radius:6,
fillColor:'#ffffff',
color: '#ffffff',
weight: 1,
opacity: 1,
fillOpacity: 0.7
}
},
onEachFeature:popUp,
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng)}
})],
'Buildings_by_distance': [L.tileLayer('https://api.mapbox.com/styles/v1/lilili/cjkjs92nl4xts2rpktn94y4nh/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoibGlsaWxpIiwiYSI6ImNqamZiczF1czA1bGIzcHAwN2J5NndyaG4ifQ.V5VP-UiOg5Uz8BQK_VqLpg', {
id: 'mapbox.Buildings_by_distance'
}),Buildings_by_distance],
'Wells': [L.geoJson.ajax('assets/Wells1.geojson', {
style: function(feature) {
return {
radius:3,
fillColor:'#337baa',
color: '#337baa',
weight: 1,
opacity: 1,
fillOpacity: 0.7
}
},
onEachFeature:popUp,
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng)}
})],
'Cropland':[L.geoJson.ajax('assets/cropland.geojson',{
color: '#fc8d59',
weight: 2
}),cropland_legend],
'Buildings_by_distance_wells': [L.tileLayer('https://api.mapbox.com/styles/v1/lilili/cjknwptw68k582ss2xhvxswz9/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoibGlsaWxpIiwiYSI6ImNqamZiczF1czA1bGIzcHAwN2J5NndyaG4ifQ.V5VP-UiOg5Uz8BQK_VqLpg', {
id: 'mapbox.Buildings_by_distance'
}),Sanitation_Coverage_legend]
};
var scenes = {
cover: {lat: 11.8077519, lng: 42.591565, zoom: 24, position: 'fullpage'},
overview: {lat: 11.8077519, lng: 42.591565, zoom: 24, position: 'fullpage'},
Problem_Stunting: {lat: 11.870, lng: 42.500, zoom: 9, layers: ['Djibouti_adm0']},
Djibouti_Locating_Stu: {lat: 11.870, lng: 42.500, zoom: 9, layers: ['stu_region']},
Djibouti_Locating_Was: {lat: 11.870, lng: 42.500, zoom: 9, layers: ['was_region']},
Health_Service: {lat: 11.5799, lng: 43.1100, zoom: 14, layers: ['ESRI','Buildings_by_distance','Health_Facilites']},
Food_Security: {lat: 11.870, lng: 42.5000,zoom: 9, layers: ['Djibouti_adm0_n', 'Cropland']},
Wash: {lat: 11.870, lng: 42.500, zoom: 9,layers: ['Djibouti_adm0_m','Buildings_by_distance_wells','Wells']},
end: {lat: 11.8077519, lng: 42.591565, zoom: 24,position: 'fullpage'},
end1: {lat: 11.8077519, lng: 42.591565, zoom: 24,position: 'fullpage'},
end2: {lat: 11.8077519, lng: 42.591565, zoom: 24,position: 'fullpage'},
end3: {lat: 11.8077519, lng: 42.591565, zoom: 24,position: 'fullpage'}
};
$('.main').storymap({
scenes: scenes,
layers: layers,
legend: true, // if you do not want a legend feature, you can simply not define the createLegend function.
scale: false,
navwidget: 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, -120], 8);
// add an base map, which can be either OSM, mapbox, tilelayer, wmslayer or those designed by yourself.
// L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}', {maxZoom: 16}).addTo(map);
// L.control.zoom({ position: 'bottomright'}).addTo(map);
// hidden the credits, but show in the about page.
// $(".leaflet-control-attribution").css("display", "none");
// return map;
// }
});
</script>
</body>
</html>