@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.
Files changed (73) hide show
  1. package/dist/cdcmap.js +32 -18
  2. package/examples/bubble-us.json +363 -0
  3. package/examples/bubble-world.json +427 -0
  4. package/examples/default-county.json +64 -12
  5. package/examples/default-hex.json +477 -0
  6. package/examples/default-usa-regions.json +118 -0
  7. package/examples/default-usa.json +1 -1
  8. package/examples/default-world-data.json +1450 -0
  9. package/examples/default-world.json +5 -3
  10. package/examples/example-city-state.json +46 -1
  11. package/examples/gallery/categorical-qualitative.json +797 -0
  12. package/examples/gallery/categorical-scale-based.json +739 -0
  13. package/examples/gallery/city-state.json +479 -0
  14. package/examples/gallery/county.json +22731 -0
  15. package/examples/gallery/equal-interval.json +1027 -0
  16. package/examples/gallery/equal-number.json +1027 -0
  17. package/examples/gallery/filterable.json +909 -0
  18. package/examples/gallery/hex-filtered.json +420 -0
  19. package/examples/gallery/hex.json +413 -0
  20. package/examples/gallery/single-state.json +21402 -0
  21. package/examples/gallery/world.json +1592 -0
  22. package/examples/private/atsdr.json +439 -0
  23. package/examples/private/atsdr_new.json +436 -0
  24. package/examples/private/bubble.json +285 -0
  25. package/examples/private/city-state.json +428 -0
  26. package/examples/private/cty-issue.json +42768 -0
  27. package/examples/private/default-usa.json +460 -0
  28. package/examples/private/default-world-data.json +1444 -0
  29. package/examples/private/default.json +968 -0
  30. package/examples/private/legend-issue.json +1 -0
  31. package/examples/private/map-rounding-error.json +42759 -0
  32. package/examples/private/map.csv +60 -0
  33. package/examples/private/mdx.json +210 -0
  34. package/examples/private/monkeypox.json +376 -0
  35. package/examples/private/regions.json +52 -0
  36. package/examples/private/valid-data-map.csv +59 -0
  37. package/examples/private/wcmsrd-13881-data.json +2858 -0
  38. package/examples/private/wcmsrd-13881.json +5823 -0
  39. package/examples/private/wcmsrd-14492-data.json +292 -0
  40. package/examples/private/wcmsrd-14492.json +114 -0
  41. package/examples/private/wcmsrd-test.json +268 -0
  42. package/examples/private/world.json +1580 -0
  43. package/examples/private/worldmap.json +1490 -0
  44. package/package.json +51 -50
  45. package/src/CdcMap.js +496 -158
  46. package/src/components/BubbleList.js +244 -0
  47. package/src/components/CityList.js +41 -5
  48. package/src/components/CountyMap.js +16 -6
  49. package/src/components/DataTable.js +25 -18
  50. package/src/components/EditorPanel.js +915 -404
  51. package/src/components/Geo.js +1 -1
  52. package/src/components/Modal.js +2 -1
  53. package/src/components/NavigationMenu.js +4 -3
  54. package/src/components/Sidebar.js +14 -19
  55. package/src/components/SingleStateMap.js +11 -5
  56. package/src/components/UsaMap.js +103 -36
  57. package/src/components/UsaRegionMap.js +320 -0
  58. package/src/components/WorldMap.js +116 -34
  59. package/src/data/country-coordinates.js +250 -0
  60. package/src/data/{dfc-map.json → county-map.json} +0 -0
  61. package/src/data/initial-state.js +20 -2
  62. package/src/data/state-coordinates.js +55 -0
  63. package/src/data/supported-geos.js +96 -15
  64. package/src/data/us-regions-topo-2.json +360525 -0
  65. package/src/data/us-regions-topo.json +37894 -0
  66. package/src/hooks/useColorPalette.ts +96 -0
  67. package/src/index.html +7 -4
  68. package/src/scss/editor-panel.scss +78 -57
  69. package/src/scss/main.scss +1 -1
  70. package/src/scss/map.scss +112 -2
  71. package/src/scss/sidebar.scss +2 -1
  72. package/src/data/color-palettes.js +0 -200
  73. package/src/images/map-folded.svg +0 -1
@@ -0,0 +1,439 @@
1
+ {
2
+ "columns": {
3
+ "geo": {
4
+ "dataTable": true,
5
+ "label": "",
6
+ "name": "State",
7
+ "tooltip": false
8
+ },
9
+ "primary": {
10
+ "dataTable": false,
11
+ "label": "",
12
+ "name": "Documents",
13
+ "prefix": "",
14
+ "suffix": "",
15
+ "tooltip": false
16
+ },
17
+ "navigate": {
18
+ "dataTable": false,
19
+ "name": "URL",
20
+ "tooltip": false
21
+ }
22
+ },
23
+ "legend": {
24
+ "numberOfItems": 1,
25
+ "position": "side",
26
+ "title": "Legend Title",
27
+ "description": "Legend Text",
28
+ "type": "equalnumber",
29
+ "specialClasses": [
30
+
31
+ ],
32
+ "descriptions": {
33
+
34
+ },
35
+ "unified": false,
36
+ "singleColumn": false,
37
+ "dynamicDescription": false,
38
+ "disabledAmt": 0,
39
+ "geosPerColor": {
40
+
41
+ },
42
+ "data": [
43
+
44
+ ]
45
+ },
46
+ "data": [
47
+ {
48
+ "State": "Alabama",
49
+ "Abbreviation": "AL",
50
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AL",
51
+ "Documents": 31
52
+ },
53
+ {
54
+ "State": "Alaska",
55
+ "Abbreviation": "AK",
56
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AK",
57
+ "Documents": 37
58
+ },
59
+ {
60
+ "State": "American Samoa",
61
+ "Abbreviation": "AS",
62
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AS",
63
+ "Documents": 0
64
+ },
65
+ {
66
+ "State": "Arizona",
67
+ "Abbreviation": "AZ",
68
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AZ",
69
+ "Documents": 71
70
+ },
71
+ {
72
+ "State": "Arkansas",
73
+ "Abbreviation": "AR",
74
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=AR",
75
+ "Documents": 55
76
+ },
77
+ {
78
+ "State": "California",
79
+ "Abbreviation": "CA",
80
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=CA",
81
+ "Documents": 120
82
+ },
83
+ {
84
+ "State": "Colorado",
85
+ "Abbreviation": "CO",
86
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=CO",
87
+ "Documents": 60
88
+ },
89
+ {
90
+ "State": "Commonwealth of Northern Marianas",
91
+ "Abbreviation": "NI",
92
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NI",
93
+ "Documents": 0
94
+ },
95
+ {
96
+ "State": "Connecticut",
97
+ "Abbreviation": "CT",
98
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=CT",
99
+ "Documents": 69
100
+ },
101
+ {
102
+ "State": "Delaware",
103
+ "Abbreviation": "DE",
104
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=DE",
105
+ "Documents": 7
106
+ },
107
+ {
108
+ "State": "District of Columbia",
109
+ "Abbreviation": "DC",
110
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=DC",
111
+ "Documents": 9
112
+ },
113
+ {
114
+ "State": "Florida",
115
+ "Abbreviation": "FL",
116
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=FL",
117
+ "Documents": 162
118
+ },
119
+ {
120
+ "State": "Georgia",
121
+ "Abbreviation": "GA",
122
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=GA",
123
+ "Documents": 82
124
+ },
125
+ {
126
+ "State": "Guam",
127
+ "Abbreviation": "GU",
128
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=GU",
129
+ "Documents": 3
130
+ },
131
+ {
132
+ "State": "Hawaii",
133
+ "Abbreviation": "HI",
134
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=HI",
135
+ "Documents": 10
136
+ },
137
+ {
138
+ "State": "Idaho",
139
+ "Abbreviation": "ID",
140
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=ID",
141
+ "Documents": 55
142
+ },
143
+ {
144
+ "State": "Illinois",
145
+ "Abbreviation": "IL",
146
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IL",
147
+ "Documents": 191
148
+ },
149
+ {
150
+ "State": "Indiana",
151
+ "Abbreviation": "IN",
152
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IN",
153
+ "Documents": 35
154
+ },
155
+ {
156
+ "Condition": "Generic v2.0",
157
+ "State": "CNMI",
158
+ "Status": "Onboarding",
159
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IN"
160
+ },
161
+ {
162
+ "Condition": "Generic v2.0",
163
+ "State": "GU",
164
+ "Abbreviation": "GU",
165
+ "Status": "Production",
166
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IN"
167
+ },
168
+ {
169
+ "State": "Iowa",
170
+ "Abbreviation": "IA",
171
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=IA",
172
+ "Documents": 50
173
+ },
174
+ {
175
+ "State": "Kansas",
176
+ "Abbreviation": "KS",
177
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=KS",
178
+ "Documents": 19
179
+ },
180
+ {
181
+ "State": "Kentucky",
182
+ "Abbreviation": "KY",
183
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=KY",
184
+ "Documents": 17
185
+ },
186
+ {
187
+ "State": "Louisiana",
188
+ "Abbreviation": "LA",
189
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=LA",
190
+ "Documents": 108
191
+ },
192
+ {
193
+ "State": "Maine",
194
+ "Abbreviation": "ME",
195
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=ME",
196
+ "Documents": 22
197
+ },
198
+ {
199
+ "State": "Maryland",
200
+ "Abbreviation": "MD",
201
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MD",
202
+ "Documents": 38
203
+ },
204
+ {
205
+ "State": "Massachusetts",
206
+ "Abbreviation": "MA",
207
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MA",
208
+ "Documents": 101
209
+ },
210
+ {
211
+ "State": "Michigan",
212
+ "Abbreviation": "MI",
213
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MI",
214
+ "Documents": 148
215
+ },
216
+ {
217
+ "State": "Minnesota",
218
+ "Abbreviation": "MN",
219
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MN",
220
+ "Documents": 74
221
+ },
222
+ {
223
+ "State": "Mississippi",
224
+ "Abbreviation": "MS",
225
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MS",
226
+ "Documents": 19
227
+ },
228
+ {
229
+ "State": "Missouri",
230
+ "Abbreviation": "MO",
231
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MO",
232
+ "Documents": 73
233
+ },
234
+ {
235
+ "State": "Montana",
236
+ "Abbreviation": "MT",
237
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=MT",
238
+ "Documents": 25
239
+ },
240
+ {
241
+ "State": "Nebraska",
242
+ "Abbreviation": "NE",
243
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NE",
244
+ "Documents": 21
245
+ },
246
+ {
247
+ "State": "Nevada",
248
+ "Abbreviation": "NV",
249
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NV",
250
+ "Documents": 6
251
+ },
252
+ {
253
+ "State": "New Hampshire",
254
+ "Abbreviation": "NH",
255
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NH",
256
+ "Documents": 55
257
+ },
258
+ {
259
+ "State": "New Jersey",
260
+ "Abbreviation": "NJ",
261
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NJ",
262
+ "Documents": 130
263
+ },
264
+ {
265
+ "State": "New Mexico",
266
+ "Abbreviation": "NM",
267
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NM",
268
+ "Documents": 22
269
+ },
270
+ {
271
+ "State": "New York",
272
+ "Abbreviation": "NY",
273
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NY",
274
+ "Documents": 151
275
+ },
276
+ {
277
+ "State": "North Carolina",
278
+ "Abbreviation": "NC",
279
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=NC",
280
+ "Documents": 47
281
+ },
282
+ {
283
+ "State": "North Dakota",
284
+ "Abbreviation": "ND",
285
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=ND",
286
+ "Documents": 0
287
+ },
288
+ {
289
+ "State": "Ohio",
290
+ "Abbreviation": "OH",
291
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=OH",
292
+ "Documents": 110
293
+ },
294
+ {
295
+ "State": "Oklahoma",
296
+ "Abbreviation": "OK",
297
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=OK",
298
+ "Documents": 12
299
+ },
300
+ {
301
+ "State": "Oregon",
302
+ "Abbreviation": "OR",
303
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=OR",
304
+ "Documents": 50
305
+ },
306
+ {
307
+ "State": "Pennsylvania",
308
+ "Abbreviation": "PA",
309
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=PA",
310
+ "Documents": 144
311
+ },
312
+ {
313
+ "State": "Puerto Rico",
314
+ "Abbreviation": "PR",
315
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=PR",
316
+ "Documents": 33
317
+ },
318
+ {
319
+ "State": "Rhode Island",
320
+ "Abbreviation": "RI",
321
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=RI",
322
+ "Documents": 11
323
+ },
324
+ {
325
+ "State": "South Carolina",
326
+ "Abbreviation": "SC",
327
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=SC",
328
+ "Documents": 41
329
+ },
330
+ {
331
+ "State": "South Dakota",
332
+ "Abbreviation": "SD",
333
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=SD",
334
+ "Documents": 5
335
+ },
336
+ {
337
+ "State": "Tennessee",
338
+ "Abbreviation": "TN",
339
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=TN",
340
+ "Documents": 105
341
+ },
342
+ {
343
+ "State": "Texas",
344
+ "Abbreviation": "TX",
345
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=TX",
346
+ "Documents": 134
347
+ },
348
+ {
349
+ "State": "Trust Territories",
350
+ "Abbreviation": "TT",
351
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=TT",
352
+ "Documents": 0
353
+ },
354
+ {
355
+ "State": "Utah",
356
+ "Abbreviation": "UT",
357
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=UT",
358
+ "Documents": 42
359
+ },
360
+ {
361
+ "State": "Vermont",
362
+ "Abbreviation": "VT",
363
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=VT",
364
+ "Documents": 10
365
+ },
366
+ {
367
+ "State": "Virgin Islands",
368
+ "Abbreviation": "VI",
369
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=VI",
370
+ "Documents": 3
371
+ },
372
+ {
373
+ "State": "Virginia",
374
+ "Abbreviation": "VA",
375
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=VA",
376
+ "Documents": 38
377
+ },
378
+ {
379
+ "State": "Washington",
380
+ "Abbreviation": "WA",
381
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WA",
382
+ "Documents": 152
383
+ },
384
+ {
385
+ "State": "West Virginia",
386
+ "Abbreviation": "WV",
387
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WV",
388
+ "Documents": 31
389
+ },
390
+ {
391
+ "State": "Wisconsin",
392
+ "Abbreviation": "WI",
393
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WI",
394
+ "Documents": 106
395
+ },
396
+ {
397
+ "State": "Wyoming",
398
+ "Abbreviation": "WY",
399
+ "URL": "https://wwwndev.cdc.gov/TSP/PHA/PHAListing.aspx?StateIndicator=WY",
400
+ "Documents": 4
401
+ },
402
+ {
403
+ "State": null
404
+ }
405
+ ],
406
+ "filters": [
407
+
408
+ ],
409
+ "sharing": {
410
+ "enabled": false,
411
+ "dataHost": "wcms-wp-test.cdc.gov",
412
+ "configUrl": "/newtest/lewisc/ATSDR_Map.json"
413
+ },
414
+ "general": {
415
+ "title": "Find a Publication - Hover over location to view state or territory name",
416
+ "subtext": "",
417
+ "territoriesLabel": "Territories",
418
+ "type": "data",
419
+ "geoType": "us",
420
+ "headerColor": "theme-cyan",
421
+ "showSidebar": false,
422
+ "showTitle": true,
423
+ "showDownloadButton": false,
424
+ "expandDataTable": false,
425
+ "backgroundColor": "#f5f5f5",
426
+ "geoBorderColor": "darkGray",
427
+ "modalOpen": false,
428
+ "modalContent": null
429
+ },
430
+ "dataTable": {
431
+ "title": "Public Heatlh Assessment State Listing"
432
+ },
433
+ "tooltips": {
434
+ "appearanceType": "hover",
435
+ "linkLabel": "Learn More",
436
+ "capitalizeLabels": false
437
+ },
438
+ "color": "greenbluereverse"
439
+ }