@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
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
"general": {
|
|
4
4
|
"title": "Default World Map",
|
|
5
5
|
"subtext": "",
|
|
6
|
-
"type": "
|
|
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
|
}
|