@cdc/map 2.6.3 → 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 +32 -18
- package/examples/bubble-us.json +363 -0
- package/examples/bubble-world.json +427 -0
- package/examples/default-county.json +64 -12
- package/examples/default-hex.json +477 -0
- package/examples/default-usa-regions.json +118 -0
- package/examples/default-usa.json +1 -1
- package/examples/default-world-data.json +1450 -0
- package/examples/default-world.json +5 -3
- package/examples/example-city-state.json +46 -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/atsdr.json +439 -0
- package/examples/private/atsdr_new.json +436 -0
- package/examples/private/bubble.json +285 -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/default-world-data.json +1444 -0
- package/examples/private/default.json +968 -0
- package/examples/private/legend-issue.json +1 -0
- package/examples/private/map-rounding-error.json +42759 -0
- package/examples/private/map.csv +60 -0
- package/examples/private/mdx.json +210 -0
- package/examples/private/monkeypox.json +376 -0
- package/examples/private/regions.json +52 -0
- package/examples/private/valid-data-map.csv +59 -0
- package/examples/private/wcmsrd-13881-data.json +2858 -0
- package/examples/private/wcmsrd-13881.json +5823 -0
- package/examples/private/wcmsrd-14492-data.json +292 -0
- package/examples/private/wcmsrd-14492.json +114 -0
- package/examples/private/wcmsrd-test.json +268 -0
- package/examples/private/world.json +1580 -0
- package/examples/private/worldmap.json +1490 -0
- package/package.json +51 -50
- package/src/CdcMap.js +496 -158
- package/src/components/BubbleList.js +244 -0
- package/src/components/CityList.js +41 -5
- package/src/components/CountyMap.js +16 -6
- package/src/components/DataTable.js +25 -18
- package/src/components/EditorPanel.js +915 -404
- package/src/components/Geo.js +1 -1
- 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 +11 -5
- package/src/components/UsaMap.js +103 -36
- package/src/components/UsaRegionMap.js +320 -0
- package/src/components/WorldMap.js +116 -34
- package/src/data/country-coordinates.js +250 -0
- package/src/data/{dfc-map.json → county-map.json} +0 -0
- package/src/data/initial-state.js +20 -2
- package/src/data/state-coordinates.js +55 -0
- package/src/data/supported-geos.js +96 -15
- package/src/data/us-regions-topo-2.json +360525 -0
- package/src/data/us-regions-topo.json +37894 -0
- package/src/hooks/useColorPalette.ts +96 -0
- package/src/index.html +7 -4
- package/src/scss/editor-panel.scss +78 -57
- package/src/scss/main.scss +1 -1
- package/src/scss/map.scss +112 -2
- package/src/scss/sidebar.scss +2 -1
- package/src/data/color-palettes.js +0 -200
- package/src/images/map-folded.svg +0 -1
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultData": true,
|
|
3
|
+
"general": {
|
|
4
|
+
"title": "Default World Map",
|
|
5
|
+
"subtext": "",
|
|
6
|
+
"type": "bubble",
|
|
7
|
+
"geoType": "us",
|
|
8
|
+
"headerColor": "theme-blue",
|
|
9
|
+
"geoBorderColor": "darkGray",
|
|
10
|
+
"showSidebar": true,
|
|
11
|
+
"showTitle": true,
|
|
12
|
+
"showDownloadButton": true,
|
|
13
|
+
"expandDataTable": true
|
|
14
|
+
},
|
|
15
|
+
"color": "redreverse",
|
|
16
|
+
"columns": {
|
|
17
|
+
"geo": {
|
|
18
|
+
"name": "State",
|
|
19
|
+
"label": "Location",
|
|
20
|
+
"tooltip": false,
|
|
21
|
+
"dataTable": true
|
|
22
|
+
},
|
|
23
|
+
"primary": {
|
|
24
|
+
"name": "Cases",
|
|
25
|
+
"label": "Total Confirmed Cases",
|
|
26
|
+
"prefix": "",
|
|
27
|
+
"suffix": "",
|
|
28
|
+
"dataTable": true,
|
|
29
|
+
"tooltip": true
|
|
30
|
+
},
|
|
31
|
+
"navigate": {
|
|
32
|
+
"name": "Link",
|
|
33
|
+
"tooltip": false,
|
|
34
|
+
"dataTable": false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"legend": {
|
|
38
|
+
"numberOfItems": 1,
|
|
39
|
+
"position": "side",
|
|
40
|
+
"title": "Legend Title",
|
|
41
|
+
"description": "Legend Text"
|
|
42
|
+
},
|
|
43
|
+
"data": [
|
|
44
|
+
{
|
|
45
|
+
"State": "Virgin Islands",
|
|
46
|
+
"Cases": "8",
|
|
47
|
+
"Category": "Has historically reported monkeypox",
|
|
48
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"State": "Guam",
|
|
52
|
+
"Cases": "13",
|
|
53
|
+
"Category": "Has not historically reported monkeypox",
|
|
54
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"State": "Georgia",
|
|
58
|
+
"Cases": "6",
|
|
59
|
+
"Category": "Has not historically reported monkeypox",
|
|
60
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"State": "Hawaii",
|
|
64
|
+
"Cases": "1",
|
|
65
|
+
"Category": "Has not historically reported monkeypox",
|
|
66
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"State": "Alaska",
|
|
70
|
+
"Cases": "11",
|
|
71
|
+
"Category": "Has not historically reported monkeypox",
|
|
72
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"State": "District of Columbia",
|
|
76
|
+
"Cases": "10700",
|
|
77
|
+
"Category": "Has historically reported monkeypox",
|
|
78
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"State": "Massachusetts",
|
|
82
|
+
"Cases": "29",
|
|
83
|
+
"Category": "Has not historically reported monkeypox",
|
|
84
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"State": "Rhode Island",
|
|
88
|
+
"Cases": "1",
|
|
89
|
+
"Category": "Has not historically reported monkeypox",
|
|
90
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"State": "Maine",
|
|
94
|
+
"Cases": "1",
|
|
95
|
+
"Category": "Has not historically reported monkeypox",
|
|
96
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"State": "New Hampshire",
|
|
100
|
+
"Cases": "2",
|
|
101
|
+
"Category": "Has not historically reported monkeypox",
|
|
102
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"State": "Vermont",
|
|
106
|
+
"Cases": "13",
|
|
107
|
+
"Category": "Has not historically reported monkeypox",
|
|
108
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"State": "Connecticut",
|
|
112
|
+
"Cases": "721",
|
|
113
|
+
"Category": "Has not historically reported monkeypox",
|
|
114
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"State": "New York",
|
|
118
|
+
"Cases": "1",
|
|
119
|
+
"Category": "Has not historically reported monkeypox",
|
|
120
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"State": "New Jersey",
|
|
124
|
+
"Cases": "1556",
|
|
125
|
+
"Category": "Has not historically reported monkeypox",
|
|
126
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"State": "Delaware",
|
|
130
|
+
"Cases": "19",
|
|
131
|
+
"Category": "Has historically reported monkeypox",
|
|
132
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"State": "Maryland",
|
|
136
|
+
"Cases": "1",
|
|
137
|
+
"Category": "Has not historically reported monkeypox",
|
|
138
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"State": "West Virginia",
|
|
142
|
+
"Cases": "11",
|
|
143
|
+
"Category": "Has not historically reported monkeypox",
|
|
144
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"State": "Virginia",
|
|
148
|
+
"Cases": "24",
|
|
149
|
+
"Category": "Has not historically reported monkeypox",
|
|
150
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"State": "South Carolina",
|
|
154
|
+
"Cases": "6",
|
|
155
|
+
"Category": "Has not historically reported monkeypox",
|
|
156
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"State": "North Carolina",
|
|
160
|
+
"Cases": "44",
|
|
161
|
+
"Category": "Has not historically reported monkeypox",
|
|
162
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"State": "Pennsylvania",
|
|
166
|
+
"Cases": "66",
|
|
167
|
+
"Category": "Has not historically reported monkeypox",
|
|
168
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"State": "Ohio",
|
|
172
|
+
"Cases": "255",
|
|
173
|
+
"Category": "Has not historically reported monkeypox",
|
|
174
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"State": "Michigan",
|
|
178
|
+
"Cases": "1",
|
|
179
|
+
"Category": "Has not historically reported monkeypox",
|
|
180
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"State": "Indiana",
|
|
184
|
+
"Cases": "2",
|
|
185
|
+
"Category": "Has not historically reported monkeypox",
|
|
186
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"State": "Illinois",
|
|
190
|
+
"Cases": "1",
|
|
191
|
+
"Category": "Has not historically reported monkeypox",
|
|
192
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"State": "Tennessee",
|
|
196
|
+
"Cases": "6",
|
|
197
|
+
"Category": "Has not historically reported monkeypox",
|
|
198
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"State": "Kentucky",
|
|
202
|
+
"Cases": "8",
|
|
203
|
+
"Category": "Has not historically reported monkeypox",
|
|
204
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"State": "Alabama",
|
|
208
|
+
"Cases": "35",
|
|
209
|
+
"Category": "Has not historically reported monkeypox",
|
|
210
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"State": "Mississippi",
|
|
214
|
+
"Cases": "1",
|
|
215
|
+
"Category": "Has not historically reported monkeypox",
|
|
216
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"State": "Louisiana",
|
|
220
|
+
"Cases": "503",
|
|
221
|
+
"Category": "Has not historically reported monkeypox",
|
|
222
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"State": "Arkansas",
|
|
226
|
+
"Cases": "84",
|
|
227
|
+
"Category": "Has historically reported monkeypox",
|
|
228
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"State": "Missouri",
|
|
232
|
+
"Cases": "19",
|
|
233
|
+
"Category": "Has not historically reported monkeypox",
|
|
234
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"State": "Iowa",
|
|
238
|
+
"Cases": "1",
|
|
239
|
+
"Category": "Has not historically reported monkeypox",
|
|
240
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"State": "Nebraska",
|
|
244
|
+
"Cases": "18",
|
|
245
|
+
"Category": "Has not historically reported monkeypox",
|
|
246
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"State": "Oklahoma",
|
|
250
|
+
"Cases": "19",
|
|
251
|
+
"Category": "Has not historically reported monkeypox",
|
|
252
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"State": "North Dakota",
|
|
256
|
+
"Cases": "473",
|
|
257
|
+
"Category": "Has not historically reported monkeypox",
|
|
258
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"State": "Montana",
|
|
262
|
+
"Cases": "2",
|
|
263
|
+
"Category": "Has historically reported monkeypox",
|
|
264
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"State": "Idaho",
|
|
268
|
+
"Cases": "14",
|
|
269
|
+
"Category": "Has not historically reported monkeypox",
|
|
270
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"State": "Kansas",
|
|
274
|
+
"Cases": "1",
|
|
275
|
+
"Category": "Has not historically reported monkeypox",
|
|
276
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"State": "Wyoming",
|
|
280
|
+
"Cases": "2",
|
|
281
|
+
"Category": "Has not historically reported monkeypox",
|
|
282
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"State": "Texas",
|
|
286
|
+
"Cases": "1",
|
|
287
|
+
"Category": "Has not historically reported monkeypox",
|
|
288
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"State": "Colorado",
|
|
292
|
+
"Cases": "18",
|
|
293
|
+
"Category": "Has not historically reported monkeypox",
|
|
294
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"State": "New Mexico",
|
|
298
|
+
"Cases": "3",
|
|
299
|
+
"Category": "Has not historically reported monkeypox",
|
|
300
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"State": "Utah",
|
|
304
|
+
"Cases": "1",
|
|
305
|
+
"Category": "Has not historically reported monkeypox",
|
|
306
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"State": "Arizona",
|
|
310
|
+
"Cases": "2034",
|
|
311
|
+
"Category": "Has not historically reported monkeypox",
|
|
312
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"State": "Nevada",
|
|
316
|
+
"Cases": "43",
|
|
317
|
+
"Category": "Has not historically reported monkeypox",
|
|
318
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"State": "Washington",
|
|
322
|
+
"Cases": "163",
|
|
323
|
+
"Category": "Has not historically reported monkeypox",
|
|
324
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"State": "California",
|
|
328
|
+
"Cases": "0",
|
|
329
|
+
"Category": "Has not historically reported monkeypox",
|
|
330
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"State": "Oregon",
|
|
334
|
+
"Cases": "1",
|
|
335
|
+
"Category": "Has not historically reported monkeypox",
|
|
336
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"State": "Florida",
|
|
340
|
+
"Cases": null,
|
|
341
|
+
"Category": "Has not historically reported monkeypox",
|
|
342
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"State": "South Dakota",
|
|
346
|
+
"Cases": "",
|
|
347
|
+
"Category": "Has not historically reported monkeypox",
|
|
348
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"State": "Minnesota",
|
|
352
|
+
"Cases": "865",
|
|
353
|
+
"Category": "Has not historically reported monkeypox",
|
|
354
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"State": "Wisconsin",
|
|
358
|
+
"Cases": "1",
|
|
359
|
+
"Category": "Has not historically reported monkeypox",
|
|
360
|
+
"AsOf": "11 Jul 2022 5:00 PM EDT"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
}
|