@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
@@ -3,14 +3,15 @@
3
3
  "general": {
4
4
  "title": "Default World Map",
5
5
  "subtext": "",
6
- "type": "data",
6
+ "type": "bubble",
7
7
  "geoType": "world",
8
8
  "headerColor": "theme-blue",
9
9
  "geoBorderColor": "darkGray",
10
10
  "showSidebar": true,
11
11
  "showTitle": true,
12
12
  "showDownloadButton": true,
13
- "expandDataTable": true
13
+ "expandDataTable": true,
14
+ "equalNumberOptIn": true
14
15
  },
15
16
  "color": "pinkpurple",
16
17
  "columns": {
@@ -40,7 +41,8 @@
40
41
  "title": "Legend Title",
41
42
  "description": "Legend Text",
42
43
  "type": "equalnumber",
43
- "specialClasses": ["N/A"]
44
+ "specialClasses": ["N/A"],
45
+ "separateZero": true
44
46
  },
45
47
  "data": [
46
48
  {
@@ -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": "*",
@@ -453,6 +459,42 @@
453
459
  "Rate": 14,
454
460
  "Location": "Vehicle",
455
461
  "URL": "https://www.cdc.gov/"
462
+ },
463
+ {
464
+ "STATE": "Birmingham",
465
+ "Rate": 14,
466
+ "Location": "Vehicle",
467
+ "URL": "https://www.cdc.gov/"
468
+ },
469
+ {
470
+ "STATE": "St Paul",
471
+ "Rate": 14,
472
+ "Location": "Vehicle",
473
+ "URL": "https://www.cdc.gov/"
474
+ },
475
+ {
476
+ "STATE": "Hershey",
477
+ "Rate": 14,
478
+ "Location": "Vehicle",
479
+ "URL": "https://www.cdc.gov/"
480
+ },
481
+ {
482
+ "STATE": "Salt Lake City",
483
+ "Rate": 14,
484
+ "Location": "Vehicle",
485
+ "URL": "https://www.cdc.gov/"
486
+ },
487
+ {
488
+ "STATE": "Syracuse",
489
+ "Rate": 14,
490
+ "Location": "Vehicle",
491
+ "URL": "https://www.cdc.gov/"
492
+ },
493
+ {
494
+ "STATE": "Philadelphia",
495
+ "Rate": 14,
496
+ "Location": "Vehicle",
497
+ "URL": "https://www.cdc.gov/"
456
498
  }
457
499
  ],
458
500
  "sharing": {
@@ -470,5 +512,8 @@
470
512
  },
471
513
  "color": "yelloworangered",
472
514
  "usingWidgetLoader": true,
473
- "type": "map"
515
+ "type": "map",
516
+ "visual": {
517
+ "cityStyle": "pin"
518
+ }
474
519
  }