@cdc/map 2.6.4 → 9.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdcmap.js +22 -16
- package/examples/default-county.json +64 -12
- package/examples/default-hex.json +3 -1
- package/examples/example-city-state.json +10 -1
- package/examples/gallery/categorical-qualitative.json +797 -0
- package/examples/gallery/categorical-scale-based.json +739 -0
- package/examples/gallery/city-state.json +479 -0
- package/examples/gallery/county.json +22731 -0
- package/examples/gallery/equal-interval.json +1027 -0
- package/examples/gallery/equal-number.json +1027 -0
- package/examples/gallery/filterable.json +909 -0
- package/examples/gallery/hex-filtered.json +420 -0
- package/examples/gallery/hex.json +413 -0
- package/examples/gallery/single-state.json +21402 -0
- package/examples/gallery/world.json +1592 -0
- package/examples/private/city-state.json +428 -0
- package/examples/private/cty-issue.json +42768 -0
- package/examples/private/default-usa.json +460 -0
- package/examples/private/legend-issue.json +1 -0
- package/examples/private/map-rounding-error.json +42759 -0
- package/examples/private/monkeypox.json +376 -0
- package/examples/private/valid-data-map.csv +59 -0
- package/examples/private/wcmsrd-14492-data.json +292 -0
- package/examples/private/wcmsrd-14492.json +114 -0
- package/package.json +3 -3
- package/src/CdcMap.js +204 -127
- package/src/components/BubbleList.js +9 -5
- package/src/components/CityList.js +22 -4
- package/src/components/CountyMap.js +13 -4
- package/src/components/DataTable.js +9 -9
- package/src/components/EditorPanel.js +239 -121
- package/src/components/Modal.js +2 -1
- package/src/components/NavigationMenu.js +4 -3
- package/src/components/Sidebar.js +14 -19
- package/src/components/SingleStateMap.js +10 -4
- package/src/components/UsaMap.js +82 -30
- package/src/components/UsaRegionMap.js +3 -2
- package/src/components/WorldMap.js +7 -2
- package/src/data/{dfc-map.json → county-map.json} +0 -0
- package/src/data/initial-state.js +2 -1
- package/src/data/supported-geos.js +5 -0
- package/src/index.html +3 -8
- package/src/scss/editor-panel.scss +2 -2
- package/src/scss/main.scss +1 -1
- package/src/scss/map.scss +4 -0
- package/src/scss/sidebar.scss +2 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "map",
|
|
3
2
|
"general": {
|
|
4
3
|
"title": "Default County Map",
|
|
5
4
|
"subtext": "",
|
|
@@ -11,8 +10,26 @@
|
|
|
11
10
|
"showTitle": true,
|
|
12
11
|
"geoBorderColor": "darkGray",
|
|
13
12
|
"showDownloadButton": true,
|
|
14
|
-
"expandDataTable": false
|
|
13
|
+
"expandDataTable": false,
|
|
14
|
+
"showDownloadMediaButton": false,
|
|
15
|
+
"displayAsHex": false,
|
|
16
|
+
"displayStateLabels": false,
|
|
17
|
+
"language": "en",
|
|
18
|
+
"hasRegions": false,
|
|
19
|
+
"fullBorder": false,
|
|
20
|
+
"palette": {
|
|
21
|
+
"isReversed": false
|
|
22
|
+
},
|
|
23
|
+
"allowMapZoom": true,
|
|
24
|
+
"hideGeoColumnInTooltip": false,
|
|
25
|
+
"hidePrimaryColumnInTooltip": false,
|
|
26
|
+
"statePicked": {
|
|
27
|
+
"fipsCode": "01",
|
|
28
|
+
"stateName": "Alabama"
|
|
29
|
+
},
|
|
30
|
+
"equalNumberOptIn": true
|
|
15
31
|
},
|
|
32
|
+
"type": "map",
|
|
16
33
|
"color": "pinkpurple",
|
|
17
34
|
"columns": {
|
|
18
35
|
"geo": {
|
|
@@ -41,65 +58,100 @@
|
|
|
41
58
|
"title": "Legend Title",
|
|
42
59
|
"description": "Legend Text",
|
|
43
60
|
"type": "equalnumber",
|
|
44
|
-
"specialClasses": [
|
|
61
|
+
"specialClasses": [
|
|
62
|
+
{
|
|
63
|
+
"key": "Insured Rate",
|
|
64
|
+
"value": "18",
|
|
65
|
+
"label": "18"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"descriptions": {},
|
|
69
|
+
"unified": false,
|
|
70
|
+
"singleColumn": false,
|
|
71
|
+
"dynamicDescription": false
|
|
45
72
|
},
|
|
46
73
|
"filters": [],
|
|
74
|
+
"dataTable": {
|
|
75
|
+
"title": "Data Table",
|
|
76
|
+
"forceDisplay": true
|
|
77
|
+
},
|
|
78
|
+
"tooltips": {
|
|
79
|
+
"appearanceType": "hover",
|
|
80
|
+
"linkLabel": "Learn More",
|
|
81
|
+
"capitalizeLabels": true
|
|
82
|
+
},
|
|
83
|
+
"runtime": {
|
|
84
|
+
"editorErrorMessage": []
|
|
85
|
+
},
|
|
86
|
+
"visual": {
|
|
87
|
+
"minBubbleSize": 1,
|
|
88
|
+
"maxBubbleSize": 20,
|
|
89
|
+
"extraBubbleBorder": false,
|
|
90
|
+
"cityStyle": "circle"
|
|
91
|
+
},
|
|
92
|
+
"mapPosition": {
|
|
93
|
+
"coordinates": [
|
|
94
|
+
0,
|
|
95
|
+
30
|
|
96
|
+
],
|
|
97
|
+
"zoom": 1
|
|
98
|
+
},
|
|
47
99
|
"data": [
|
|
48
100
|
{
|
|
49
|
-
"Insured Rate":
|
|
101
|
+
"Insured Rate": 8,
|
|
50
102
|
"Coverage Status": "Insured",
|
|
51
103
|
"FIPS Codes": "06071",
|
|
52
104
|
"Year (Good filter option)": "2010",
|
|
53
105
|
"link": ""
|
|
54
106
|
},
|
|
55
107
|
{
|
|
56
|
-
"Insured Rate":
|
|
108
|
+
"Insured Rate": 0,
|
|
57
109
|
"Coverage Status": "Insured",
|
|
58
110
|
"FIPS Codes": "55005",
|
|
59
111
|
"Year (Good filter option)": "2010",
|
|
60
112
|
"link": "https://cdc.gov"
|
|
61
113
|
},
|
|
62
114
|
{
|
|
63
|
-
"Insured Rate":
|
|
115
|
+
"Insured Rate": 25,
|
|
64
116
|
"Coverage Status": "Insured",
|
|
65
117
|
"FIPS Codes": "12103",
|
|
66
118
|
"Year (Good filter option)": "2010",
|
|
67
119
|
"link": ""
|
|
68
120
|
},
|
|
69
121
|
{
|
|
70
|
-
"Insured Rate":
|
|
122
|
+
"Insured Rate": 25,
|
|
71
123
|
"Coverage Status": "Insured",
|
|
72
124
|
"FIPS Codes": "32005",
|
|
73
125
|
"Year (Good filter option)": "2010",
|
|
74
126
|
"link": ""
|
|
75
127
|
},
|
|
76
128
|
{
|
|
77
|
-
"Insured Rate":
|
|
129
|
+
"Insured Rate": 18,
|
|
78
130
|
"Coverage Status": "Insured",
|
|
79
131
|
"FIPS Codes": "06075",
|
|
80
132
|
"Year (Good filter option)": "2010",
|
|
81
133
|
"link": ""
|
|
82
134
|
},
|
|
83
135
|
{
|
|
84
|
-
"Insured Rate":
|
|
136
|
+
"Insured Rate": 3,
|
|
85
137
|
"Coverage Status": "Insured",
|
|
86
138
|
"FIPS Codes": "06027",
|
|
87
139
|
"Year (Good filter option)": "2010",
|
|
88
140
|
"link": ""
|
|
89
141
|
},
|
|
90
142
|
{
|
|
91
|
-
"Insured Rate":
|
|
143
|
+
"Insured Rate": 25,
|
|
92
144
|
"Coverage Status": "Insured",
|
|
93
145
|
"FIPS Codes": "06029",
|
|
94
146
|
"Year (Good filter option)": "2010",
|
|
95
147
|
"link": ""
|
|
96
148
|
},
|
|
97
149
|
{
|
|
98
|
-
"Insured Rate":
|
|
150
|
+
"Insured Rate": 60,
|
|
99
151
|
"Coverage Status": "Insured",
|
|
100
152
|
"FIPS Codes": "06065",
|
|
101
153
|
"Year (Good filter option)": "2010",
|
|
102
154
|
"link": ""
|
|
103
155
|
}
|
|
104
156
|
]
|
|
105
|
-
}
|
|
157
|
+
}
|
|
@@ -148,6 +148,12 @@
|
|
|
148
148
|
"Location": "School",
|
|
149
149
|
"URL": "https://www.cdc.gov/"
|
|
150
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"STATE": "GAINESVILLE",
|
|
153
|
+
"Rate": 22,
|
|
154
|
+
"Location": "School",
|
|
155
|
+
"URL": "https://www.cdc.gov/"
|
|
156
|
+
},
|
|
151
157
|
{
|
|
152
158
|
"STATE": "ID",
|
|
153
159
|
"Rate": "*",
|
|
@@ -506,5 +512,8 @@
|
|
|
506
512
|
},
|
|
507
513
|
"color": "yelloworangered",
|
|
508
514
|
"usingWidgetLoader": true,
|
|
509
|
-
"type": "map"
|
|
515
|
+
"type": "map",
|
|
516
|
+
"visual": {
|
|
517
|
+
"cityStyle": "pin"
|
|
518
|
+
}
|
|
510
519
|
}
|