@cdc/map 4.23.11 → 4.24.1

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 (51) hide show
  1. package/dist/cdcmap.js +41327 -40764
  2. package/examples/default-patterns.json +581 -0
  3. package/examples/default-usa.json +159 -57
  4. package/examples/private/map-text-wrap.json +574 -0
  5. package/examples/private/map-world-data.json +1046 -0
  6. package/examples/private/new-world.json +38337 -0
  7. package/examples/private/zika-issue.json +1198 -0
  8. package/index.html +10 -4
  9. package/package.json +3 -3
  10. package/src/CdcMap.tsx +10 -15
  11. package/src/components/{EditorPanel.jsx → EditorPanel/components/EditorPanel.tsx} +30 -62
  12. package/src/components/{HexShapeSettings.jsx → EditorPanel/components/HexShapeSettings.tsx} +0 -49
  13. package/src/components/EditorPanel/components/Inputs.tsx +59 -0
  14. package/src/components/EditorPanel/components/Panel.PatternSettings.tsx +140 -0
  15. package/src/components/EditorPanel/components/Panels.tsx +7 -0
  16. package/src/components/EditorPanel/index.tsx +3 -0
  17. package/src/components/Legend/components/Legend.tsx +183 -0
  18. package/src/components/Legend/components/LegendItem.Hex.tsx +53 -0
  19. package/src/components/Legend/components/index.scss +235 -0
  20. package/src/components/Legend/index.tsx +3 -0
  21. package/src/components/UsaMap/components/Territory/Territory.Hexagon.tsx +129 -0
  22. package/src/components/UsaMap/components/Territory/Territory.Rectangle.tsx +66 -0
  23. package/src/components/UsaMap/components/Territory/index.tsx +9 -0
  24. package/src/components/{CountyMap.jsx → UsaMap/components/UsaMap.County.tsx} +9 -9
  25. package/src/components/{UsaRegionMap.jsx → UsaMap/components/UsaMap.Region.tsx} +1 -3
  26. package/src/components/{SingleStateMap.jsx → UsaMap/components/UsaMap.SingleState.tsx} +8 -9
  27. package/src/components/{UsaMap.jsx → UsaMap/components/UsaMap.State.tsx} +52 -123
  28. package/src/components/UsaMap/index.tsx +13 -0
  29. package/src/components/{WorldMap.jsx → WorldMap/components/WorldMap.jsx} +6 -6
  30. package/src/components/WorldMap/data/world-topo.json +1 -0
  31. package/src/components/WorldMap/index.tsx +3 -0
  32. package/src/context.ts +2 -1
  33. package/src/data/initial-state.js +3 -1
  34. package/src/scss/main.scss +11 -1
  35. package/src/types/MapConfig.ts +149 -0
  36. package/src/types/MapContext.ts +45 -0
  37. package/src/types/runtimeLegend.ts +1 -0
  38. package/src/components/Sidebar.tsx +0 -142
  39. package/src/data/abbreviations.js +0 -57
  40. package/src/data/feature-test.json +0 -73
  41. package/src/data/newtest.json +0 -1
  42. package/src/data/state-abbreviations.js +0 -60
  43. package/src/data/supported-cities.csv +0 -165
  44. package/src/data/test.json +0 -1
  45. package/src/data/world-topo.json +0 -1
  46. package/src/scss/sidebar.scss +0 -230
  47. /package/src/{data → components/UsaMap/data}/cb_2019_us_county_20m.json +0 -0
  48. /package/src/{data → components/UsaMap/data}/us-hex-topo.json +0 -0
  49. /package/src/{data → components/UsaMap/data}/us-regions-topo-2.json +0 -0
  50. /package/src/{data → components/UsaMap/data}/us-regions-topo.json +0 -0
  51. /package/src/{data → components/UsaMap/data}/us-topo.json +0 -0
@@ -0,0 +1,574 @@
1
+ {
2
+ "general": {
3
+ "geoType": "us",
4
+ "type": "data",
5
+ "geoBorderColor": "darkGray",
6
+ "headerColor": "theme-blue",
7
+ "title": "States Awarded CDC-RFA-DP21-2105",
8
+ "showTitle": false,
9
+ "showSidebar": false,
10
+ "showDownloadButton": false,
11
+ "showDownloadMediaButton": false,
12
+ "displayAsHex": false,
13
+ "displayStateLabels": false,
14
+ "territoriesLabel": "Territories",
15
+ "territoriesAlwaysShow": false,
16
+ "language": "en",
17
+ "geoLabelOverride": "",
18
+ "hasRegions": false,
19
+ "fullBorder": false,
20
+ "convertFipsCodes": true,
21
+ "palette": {
22
+ "isReversed": true
23
+ },
24
+ "allowMapZoom": true,
25
+ "hideGeoColumnInTooltip": true,
26
+ "hidePrimaryColumnInTooltip": true,
27
+ "statePicked": {
28
+ "fipsCode": "01",
29
+ "stateName": "Alabama"
30
+ }
31
+ },
32
+ "type": "map",
33
+ "color": "greenbluereverse",
34
+ "columns": {
35
+ "geo": {
36
+ "name": "State",
37
+ "label": "Location",
38
+ "tooltip": false,
39
+ "dataTable": true
40
+ },
41
+ "primary": {
42
+ "dataTable": false,
43
+ "tooltip": false,
44
+ "prefix": "",
45
+ "suffix": "",
46
+ "name": "status",
47
+ "label": ""
48
+ },
49
+ "navigate": {
50
+ "name": ""
51
+ },
52
+ "latitude": {
53
+ "name": ""
54
+ },
55
+ "longitude": {
56
+ "name": ""
57
+ },
58
+ "additionalColumn1": {
59
+ "label": "",
60
+ "dataTable": true,
61
+ "tooltips": false,
62
+ "prefix": "",
63
+ "suffix": "",
64
+ "name": "component",
65
+ "tooltip": true
66
+ }
67
+ },
68
+ "legend": {
69
+ "descriptions": {},
70
+ "specialClasses": [
71
+ {
72
+ "key": "status",
73
+ "value": "N/A"
74
+ }
75
+ ],
76
+ "unified": false,
77
+ "singleColumn": false,
78
+ "singleRow": false,
79
+ "verticalSorted": false,
80
+ "showSpecialClassesLast": false,
81
+ "dynamicDescription": false,
82
+ "type": "category",
83
+ "numberOfItems": 3,
84
+ "position": "side",
85
+ "title": "Legend",
86
+ "categoryValuesOrder": [
87
+ "N/A",
88
+ "Has component"
89
+ ]
90
+ },
91
+ "filters": [],
92
+ "table": {
93
+ "label": "Data Table",
94
+ "expanded": true,
95
+ "limitHeight": false,
96
+ "height": "",
97
+ "caption": "",
98
+ "showDownloadUrl": false,
99
+ "showDataTableLink": true,
100
+ "showFullGeoNameInCSV": false,
101
+ "forceDisplay": true,
102
+ "download": false,
103
+ "indexLabel": ""
104
+ },
105
+ "tooltips": {
106
+ "appearanceType": "hover",
107
+ "linkLabel": "Learn More",
108
+ "capitalizeLabels": true,
109
+ "opacity": 90
110
+ },
111
+ "runtime": {
112
+ "editorErrorMessage": []
113
+ },
114
+ "visual": {
115
+ "minBubbleSize": 1,
116
+ "maxBubbleSize": 20,
117
+ "extraBubbleBorder": false,
118
+ "cityStyle": "circle",
119
+ "geoCodeCircleSize": 2,
120
+ "showBubbleZeros": false
121
+ },
122
+ "mapPosition": {
123
+ "coordinates": [
124
+ 0,
125
+ 30
126
+ ],
127
+ "zoom": 1
128
+ },
129
+ "map": {
130
+ "layers": []
131
+ },
132
+ "hexMap": {
133
+ "type": "",
134
+ "shapeGroups": [
135
+ {
136
+ "legendTitle": "",
137
+ "legendDescription": "",
138
+ "items": [
139
+ {
140
+ "key": "",
141
+ "shape": "Arrow up",
142
+ "column": "",
143
+ "operator": "=",
144
+ "value": ""
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ },
150
+ "filterBehavior": "Filter Change",
151
+ "datasets": {},
152
+ "data": [
153
+ {
154
+ "State": "Alabama",
155
+ "statename": "",
156
+ "stateabbreviation": "AL",
157
+ "component": "",
158
+ "status": "N/A"
159
+ },
160
+ {
161
+ "State": "Alaska",
162
+ "statename": "Alaska",
163
+ "stateabbreviation": "AS",
164
+ "component": "Recover Alaska / The Foraker Group",
165
+ "status": "Has component"
166
+ },
167
+ {
168
+ "State": "American Samoa",
169
+ "statename": "",
170
+ "stateabbreviation": "AZ",
171
+ "component": "",
172
+ "status": "N/A"
173
+ },
174
+ {
175
+ "State": "Arizona",
176
+ "statename": "",
177
+ "stateabbreviation": "AR",
178
+ "component": "",
179
+ "status": "N/A"
180
+ },
181
+ {
182
+ "State": "Arkansas",
183
+ "statename": "",
184
+ "stateabbreviation": "CT",
185
+ "component": "",
186
+ "status": "N/A"
187
+ },
188
+ {
189
+ "State": "California",
190
+ "statename": "California",
191
+ "stateabbreviation": "DE",
192
+ "component": "California Department of Public Health",
193
+ "status": "Has component"
194
+ },
195
+ {
196
+ "State": "Colorado",
197
+ "statename": "Colorado",
198
+ "stateabbreviation": "DC",
199
+ "component": "Colorado Department of Health and Environment",
200
+ "status": "Has component"
201
+ },
202
+ {
203
+ "State": "Connecticut",
204
+ "statename": "",
205
+ "stateabbreviation": "FL",
206
+ "component": "",
207
+ "status": "N/A"
208
+ },
209
+ {
210
+ "State": "Delaware",
211
+ "statename": "",
212
+ "stateabbreviation": "GA",
213
+ "component": "",
214
+ "status": "N/A"
215
+ },
216
+ {
217
+ "State": "District of Columbia",
218
+ "statename": "",
219
+ "stateabbreviation": "GU",
220
+ "component": "",
221
+ "status": "N/A"
222
+ },
223
+ {
224
+ "State": "Florida",
225
+ "statename": "",
226
+ "stateabbreviation": "HI",
227
+ "component": "",
228
+ "status": "N/A"
229
+ },
230
+ {
231
+ "State": "Georgia",
232
+ "statename": "",
233
+ "stateabbreviation": "IL",
234
+ "component": "",
235
+ "status": "N/A"
236
+ },
237
+ {
238
+ "State": "Guam",
239
+ "statename": "",
240
+ "stateabbreviation": "IN",
241
+ "component": "",
242
+ "status": "N/A"
243
+ },
244
+ {
245
+ "State": "Hawaii",
246
+ "statename": "",
247
+ "stateabbreviation": "IA",
248
+ "component": "",
249
+ "status": "N/A"
250
+ },
251
+ {
252
+ "State": "Idaho",
253
+ "statename": "Idaho",
254
+ "stateabbreviation": "KS",
255
+ "component": "Idaho Department of Health and Welfare",
256
+ "status": "Has component"
257
+ },
258
+ {
259
+ "State": "Illinois",
260
+ "statename": "",
261
+ "stateabbreviation": "KY",
262
+ "component": "",
263
+ "status": "N/A"
264
+ },
265
+ {
266
+ "State": "Indiana",
267
+ "statename": "",
268
+ "stateabbreviation": "LA",
269
+ "component": "",
270
+ "status": "N/A"
271
+ },
272
+ {
273
+ "State": "Iowa",
274
+ "statename": "",
275
+ "stateabbreviation": "ME",
276
+ "component": "",
277
+ "status": "N/A"
278
+ },
279
+ {
280
+ "State": "Kansas",
281
+ "statename": "",
282
+ "stateabbreviation": "MH",
283
+ "component": "",
284
+ "status": "N/A"
285
+ },
286
+ {
287
+ "State": "Kentucky",
288
+ "statename": "",
289
+ "stateabbreviation": "MA",
290
+ "component": "",
291
+ "status": "N/A"
292
+ },
293
+ {
294
+ "State": "Louisiana",
295
+ "statename": "",
296
+ "stateabbreviation": "MI",
297
+ "component": "",
298
+ "status": "N/A"
299
+ },
300
+ {
301
+ "State": "Maine",
302
+ "statename": "",
303
+ "stateabbreviation": "FM",
304
+ "component": "",
305
+ "status": "N/A"
306
+ },
307
+ {
308
+ "State": "Marshall Islands",
309
+ "statename": "",
310
+ "stateabbreviation": "MS",
311
+ "component": "",
312
+ "status": "N/A"
313
+ },
314
+ {
315
+ "State": "Maryland",
316
+ "statename": "Maryland",
317
+ "stateabbreviation": "MO",
318
+ "component": "Maryland Department of Health",
319
+ "status": "Has component"
320
+ },
321
+ {
322
+ "State": "Massachusetts",
323
+ "statename": "",
324
+ "stateabbreviation": "MT",
325
+ "component": "",
326
+ "status": "N/A"
327
+ },
328
+ {
329
+ "State": "Michigan",
330
+ "statename": "",
331
+ "stateabbreviation": "NE",
332
+ "component": "",
333
+ "status": "N/A"
334
+ },
335
+ {
336
+ "State": "Micronesia",
337
+ "statename": "",
338
+ "stateabbreviation": "NV",
339
+ "component": "",
340
+ "status": "N/A"
341
+ },
342
+ {
343
+ "State": "Minnesota",
344
+ "statename": "Minnesota",
345
+ "stateabbreviation": "NH",
346
+ "component": "Minnesota Department of Health",
347
+ "status": "Has component"
348
+ },
349
+ {
350
+ "State": "Mississippi",
351
+ "statename": "",
352
+ "stateabbreviation": "NJ",
353
+ "component": "",
354
+ "status": "N/A"
355
+ },
356
+ {
357
+ "State": "Missouri",
358
+ "statename": "",
359
+ "stateabbreviation": "ND",
360
+ "component": "",
361
+ "status": "N/A"
362
+ },
363
+ {
364
+ "State": "Montana",
365
+ "statename": "",
366
+ "stateabbreviation": "MP",
367
+ "component": "",
368
+ "status": "N/A"
369
+ },
370
+ {
371
+ "State": "Nebraska",
372
+ "statename": "",
373
+ "stateabbreviation": "OH",
374
+ "component": "",
375
+ "status": "N/A"
376
+ },
377
+ {
378
+ "State": "Nevada",
379
+ "statename": "",
380
+ "stateabbreviation": "OK",
381
+ "component": "",
382
+ "status": "N/A"
383
+ },
384
+ {
385
+ "State": "New Hampshire",
386
+ "statename": "",
387
+ "stateabbreviation": "PW",
388
+ "component": "",
389
+ "status": "N/A"
390
+ },
391
+ {
392
+ "State": "New Jersey",
393
+ "statename": "",
394
+ "stateabbreviation": "PA",
395
+ "component": "",
396
+ "status": "N/A"
397
+ },
398
+ {
399
+ "State": "New Mexico",
400
+ "statename": "New Mexico",
401
+ "stateabbreviation": "PR",
402
+ "component": "New Mexico Department of Health",
403
+ "status": "Has component"
404
+ },
405
+ {
406
+ "State": "New York",
407
+ "statename": "New York",
408
+ "stateabbreviation": "SC",
409
+ "component": "New York State Department of Health / Health Research, Inc.",
410
+ "status": "Has component"
411
+ },
412
+ {
413
+ "State": "North Carolina",
414
+ "statename": "North Carolina",
415
+ "stateabbreviation": "SD",
416
+ "component": "North Carolina Department of Health and Human Services",
417
+ "status": "Has component"
418
+ },
419
+ {
420
+ "State": "North Dakota",
421
+ "statename": "",
422
+ "stateabbreviation": "TN",
423
+ "component": "",
424
+ "status": "N/A"
425
+ },
426
+ {
427
+ "State": "Northern Mariana Islands",
428
+ "statename": "",
429
+ "stateabbreviation": "UT",
430
+ "component": "",
431
+ "status": "N/A"
432
+ },
433
+ {
434
+ "State": "Ohio",
435
+ "statename": "",
436
+ "stateabbreviation": "VT",
437
+ "component": "",
438
+ "status": "N/A"
439
+ },
440
+ {
441
+ "State": "Oklahoma",
442
+ "statename": "",
443
+ "stateabbreviation": "VI",
444
+ "component": "",
445
+ "status": "N/A"
446
+ },
447
+ {
448
+ "State": "Oregon",
449
+ "statename": "Oregon",
450
+ "stateabbreviation": "VA",
451
+ "component": "Oregon Health Authority",
452
+ "status": "Has component"
453
+ },
454
+ {
455
+ "State": "Palau",
456
+ "statename": "",
457
+ "stateabbreviation": "WA",
458
+ "component": "",
459
+ "status": "N/A"
460
+ },
461
+ {
462
+ "State": "Pennsylvania",
463
+ "statename": "",
464
+ "stateabbreviation": "WV",
465
+ "component": "",
466
+ "status": "N/A"
467
+ },
468
+ {
469
+ "State": "Puerto Rico",
470
+ "statename": "",
471
+ "stateabbreviation": "WI",
472
+ "component": "",
473
+ "status": "N/A"
474
+ },
475
+ {
476
+ "State": "Rhode Island",
477
+ "statename": "Rhode Island",
478
+ "stateabbreviation": "WY",
479
+ "component": "Rhode Island Department of Health",
480
+ "status": "Has component"
481
+ },
482
+ {
483
+ "State": "South Carolina",
484
+ "statename": "",
485
+ "stateabbreviation": "sc",
486
+ "component": "",
487
+ "status": "N/A"
488
+ },
489
+ {
490
+ "State": "South Dakota",
491
+ "statename": "",
492
+ "stateabbreviation": "sd",
493
+ "component": "",
494
+ "status": "N/A"
495
+ },
496
+ {
497
+ "State": "Tennessee",
498
+ "statename": "",
499
+ "stateabbreviation": "tn",
500
+ "component": "",
501
+ "status": "N/A"
502
+ },
503
+ {
504
+ "State": "Texas",
505
+ "statename": "Texas",
506
+ "stateabbreviation": "tx",
507
+ "component": "Texas Department of Health and Human Services / Research Triangle Institute ",
508
+ "status": "Has component"
509
+ },
510
+ {
511
+ "State": "Utah",
512
+ "statename": "",
513
+ "stateabbreviation": "ut",
514
+ "component": "",
515
+ "status": "N/A"
516
+ },
517
+ {
518
+ "State": "Vermont",
519
+ "statename": "",
520
+ "stateabbreviation": "vt",
521
+ "component": "",
522
+ "status": "N/A"
523
+ },
524
+ {
525
+ "State": "Virgin Islands",
526
+ "statename": "",
527
+ "stateabbreviation": "vi",
528
+ "component": "",
529
+ "status": "N/A"
530
+ },
531
+ {
532
+ "State": "Virginia",
533
+ "statename": "",
534
+ "stateabbreviation": "va",
535
+ "component": "",
536
+ "status": "N/A"
537
+ },
538
+ {
539
+ "State": "Washington",
540
+ "statename": "",
541
+ "stateabbreviation": "wa",
542
+ "component": "",
543
+ "status": "N/A"
544
+ },
545
+ {
546
+ "State": "West Virginia",
547
+ "statename": "",
548
+ "stateabbreviation": "wv",
549
+ "component": "",
550
+ "status": "N/A"
551
+ },
552
+ {
553
+ "State": "Wisconsin",
554
+ "statename": "",
555
+ "stateabbreviation": "wi",
556
+ "component": "",
557
+ "status": "N/A"
558
+ },
559
+ {
560
+ "State": "Wyoming",
561
+ "statename": "",
562
+ "stateabbreviation": "wy",
563
+ "component": "",
564
+ "status": "N/A"
565
+ }
566
+ ],
567
+ "dataFileName": "States Awarded CDC-RFA-DP21-2105.csv",
568
+ "dataFileSourceType": "file",
569
+ "dataDescription": {
570
+ "horizontal": false,
571
+ "series": false
572
+ },
573
+ "validated": 4.23
574
+ }