-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
223 lines (223 loc) · 6.93 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
var config = {
style: 'mapbox://styles/lorinczszabolcs/ck9odz1nc2d7j1imo8lb7x1u2/draft?fresh=true',
accessToken: 'pk.eyJ1IjoibG9yaW5jenN6YWJvbGNzIiwiYSI6ImNrOWZjcDdvdTBhYm0zbW8zZjBvMzFlbzkifQ.Mdj6SfBhLQgF7hrwx-ASGw',
showMarkers: false,
theme: 'dark',
alignment: 'left',
title: 'COVID-19 related deaths in England and Wales',
// subtitle: 'Title',
// byline: '',
footer: 'Source: Office for National Statistics licensed under the Open Government Licence v.3.0,\
Contains OS data © Crown copyright and database right 2020,\
Office for National Statistics – Deaths involving COVID-19',
chapters: [
{
id: 'england',
title: 'England and Wales',
// image: './path/to/image/source.png',
description: 'Between 1 March and 17 April 2020, there were 90,232 deaths occurring in England and Wales that were registered by 18 April; 20,283 of these deaths involved the coronavirus (COVID-19).',
location: {
center: { lon: -2.518081, lat: 54.750883 },
zoom: 5.13,
bearing: -10.71,
pitch: 0.00
},
onChapterEnter: [
{
layer: 'coviddeaths-1',
opacity: 0
},
{
layer: 'Newham',
opacity: 0
},
{
layer: 'Brent',
opacity: 0
},
{
layer: 'Hackney',
opacity: 0
},
{
layer: 'middle-layer-soa',
opacity: 0
}
],
onChapterExit: [
]
},
{
id: 'london',
title: 'London',
// image: './path/to/image/source.png',
description: 'London had the highest age-standardised mortality rate with 85.7 deaths per 100,000 persons involving COVID-19; this was statistically significantly higher than any other region and almost double the next highest rate.',
location: {
center: { lon: -0.113193, lat: 51.520948 },
zoom: 10.21,
bearing: -25.60,
pitch: 60.00
},
onChapterEnter: [
{
layer: 'coviddeaths-1',
opacity: 1
}
],
onChapterExit: []
},
{
id: 'london-boroughs',
title: 'London Boroughs',
// image: './path/to/image/source.png',
description: 'The local authorities with the highest age-standardised mortality rates for deaths involving COVID-19 were all London Boroughs: Newham, Brent and Hackney.',
location: {
center: { lon: -0.113193, lat: 51.520948 },
zoom: 10.21,
bearing: -25.60,
pitch: 60.00
},
onChapterEnter: [
{
layer: 'coviddeaths-1',
opacity: 1
},
{
layer: 'Newham',
opacity: 1
},
{
layer: 'Brent',
opacity: 1
},
{
layer: 'Hackney',
opacity: 1
},
],
onChapterExit: [
{
layer: 'Brent',
opacity: 0
},
{
layer: 'Hackney',
opacity: 0
},
{
layer: 'Newham',
opacity: 0
},
]
},
{
id: 'newham',
title: 'Newham',
// image: './path/to/image/source.png',
description: 'Newham had the highest age-standardised rate with 144.3 deaths per 100,000 population.',
location: {
center: { lon: 0.045091, lat: 51.534672 },
zoom: 12.47,
bearing: -32.60,
pitch: 41.50
},
onChapterEnter: [
{
layer: 'Newham',
opacity: 1
},
{
layer: 'middle-layer-soa',
opacity: 1
}
],
onChapterExit: [
{
layer: 'Newham',
opacity: 0
}
]
},
{
id: 'brent',
title: 'Brent',
// image: './path/to/image/source.png',
description: 'Brent was the second, with a rate of 141.5 deaths per 100,000 population.',
location: {
center: { lon: -0.267190, lat: 51.548120 },
zoom: 12.42,
bearing: 21.37,
pitch: 41.00
},
onChapterEnter: [
{
layer: 'Brent',
opacity: 1
}
],
onChapterExit: [
{
layer: 'Brent',
opacity: 0
}
]
},
{
id: 'hackney',
title: 'Hackney',
// image: './path/to/image/source.png',
description: 'Hackney being the third, with a rate of 127.4 deaths per 100,000 population.',
location: {
center: { lon: -0.069671, lat: 51.547453 },
zoom: 12.92,
bearing: 55.80,
pitch: 45.00
},
onChapterEnter: [
{
layer: 'Hackney',
opacity: 1
}
],
onChapterExit: [
{
layer: 'Hackney',
opacity: 0
}
]
},
{
id: 'end',
title: 'Thank you!',
location: {
center: { lon: -2.518081, lat: 54.750883 },
zoom: 5.13,
bearing: -10.71,
pitch: 0.00
},
onChapterEnter: [
{
layer: 'coviddeaths-1',
opacity: 0
},
{
layer: 'Newham',
opacity: 0
},
{
layer: 'Brent',
opacity: 0
},
{
layer: 'Hackney',
opacity: 0
},
{
layer: 'middle-layer-soa',
opacity: 0
}
],
onChapterExit: []
}
]
};