-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.js
82 lines (80 loc) · 1.72 KB
/
options.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
const scale_color_count = 5;
const data_config = [
// {
// name: 'Number of avoided premature deaths (high-end estimate)',
// ref_id: 'num_apd_he',
// currency: false,
// decimal_places: 3,
// chroma_scale: ['ffffff', '003049']
// },
// {
// name: 'Number of avoided premature deaths (low-end estimate)',
// ref_id: 'num_apd_le',
// currency: false,
// decimal_places: 3,
// chroma_scale: ['ffffff', '003049']
// },
{
name: 'Total monetized benefits (high-end estimate)',
ref_id: 'mb_all_he',
currency: true,
decimal_places: 0,
// chroma_scale: ['ffffff', 'a7ccb7']
chroma_scale: ['ffffff', '003049']
},
{
name: 'Total monetized benefits (low-end estimate)',
ref_id: 'mb_all_le',
currency: true,
decimal_places: 0,
// chroma_scale: ['ffffff', 'a7ccb7']
chroma_scale: ['ffffff', '003049']
},
{
name: 'Monetized benefits - avoided premature deaths (high-end estimate)',
ref_id: 'mb_deaths_he',
currency: true,
decimal_places: 0,
chroma_scale: ['ffffff', '3e6991']
},
{
name: 'Monetized benefits - avoided premature deaths (low-end estimate)',
ref_id: 'mb_deaths_le',
currency: true,
decimal_places: 0,
chroma_scale: ['ffffff', '3e6991']
},
{
name: 'Monetized benefits - avoided cases of non-fatal illness (estimate)',
ref_id: 'mb_illness',
currency: true,
decimal_places: 0,
chroma_scale: ['ffffff', 'f4633a']
},
];
const styles = {
state: {
color: '#eee',
weight: 1,
opacity: 1,
fillOpacity: 1
},
airport: {
radius: 6,
fillColor: "#ff7800",
color: "#4c4c4c",
weight: 1,
opacity: 1,
fillOpacity: 1
},
selected: {
weight: 5,
color: '#ffae3b',
fillOpacity: 1
},
highlight: {
weight: 2,
color: '#ffae3b',
fillOpacity: 1
}
}