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