@cdc/map 4.22.11 → 4.23.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.
- package/dist/495.js +3 -0
- package/dist/703.js +1 -0
- package/dist/856.js +3 -0
- package/dist/cdcmap.js +724 -120
- package/examples/bubble-us.json +362 -362
- package/examples/bubble-world.json +426 -426
- package/examples/{private/city-state2.json → city-state.json} +2 -2
- package/examples/example-city-state.json +202 -25
- package/package.json +3 -4
- package/src/CdcMap.js +142 -232
- package/src/components/BubbleList.js +2 -3
- package/src/components/CityList.js +1 -2
- package/src/components/DataTable.js +31 -3
- package/src/components/EditorPanel.js +73 -16
- package/src/components/Filters.js +114 -0
- package/src/components/Sidebar.js +0 -6
- package/src/components/UsaMap.js +4 -4
- package/src/context.js +5 -0
- package/src/data/initial-state.js +19 -15
- package/src/data/supported-geos.js +3201 -3175
- package/src/index.html +32 -28
- package/src/scss/datatable.scss +1 -2
- package/src/scss/filters.scss +42 -0
- package/src/scss/main.scss +4 -3
- package/examples/private/atsdr.json +0 -429
- package/examples/private/atsdr_new.json +0 -436
- package/examples/private/bubble.json +0 -283
- package/examples/private/city-state.json +0 -428
- package/examples/private/cty-issue.json +0 -42765
- package/examples/private/default-usa.json +0 -457
- package/examples/private/default-world-data.json +0 -1444
- package/examples/private/default.json +0 -968
- package/examples/private/diff.json +0 -226
- package/examples/private/filters.json +0 -1
- package/examples/private/legend-issue.json +0 -3271
- package/examples/private/map-issue.json +0 -166
- package/examples/private/map-rounding-error.json +0 -42756
- package/examples/private/map.csv +0 -60
- package/examples/private/mdx.json +0 -210
- package/examples/private/monkeypox.json +0 -376
- package/examples/private/regions.json +0 -52
- package/examples/private/valid-data-map.csv +0 -59
- package/examples/private/wcmsrd-13881-data.json +0 -2858
- package/examples/private/wcmsrd-13881.json +0 -5819
- package/examples/private/wcmsrd-14492-data.json +0 -292
- package/examples/private/wcmsrd-14492.json +0 -104
- package/examples/private/wcmsrd-test.json +0 -265
- package/examples/private/world.json +0 -1580
- package/examples/private/worldmap.json +0 -1490
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
"URL": "https://www.cdc.gov/"
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
|
-
"STATE": "New York City",
|
|
375
|
+
"STATE": "New York City New York City New York City",
|
|
376
376
|
"Rate": 22,
|
|
377
377
|
"Location": "School",
|
|
378
378
|
"URL": "https://www.cdc.gov/"
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"URL": "https://www.cdc.gov/"
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
|
-
"STATE": "
|
|
417
|
+
"STATE": "Salt Lake City",
|
|
418
418
|
"Rate": 14,
|
|
419
419
|
"Location": "Vehicle",
|
|
420
420
|
"URL": "https://www.cdc.gov/"
|
|
@@ -8,14 +8,31 @@
|
|
|
8
8
|
"showSidebar": true,
|
|
9
9
|
"showTitle": true,
|
|
10
10
|
"showDownloadButton": true,
|
|
11
|
-
"expandDataTable":
|
|
11
|
+
"expandDataTable": false,
|
|
12
12
|
"backgroundColor": "#f5f5f5",
|
|
13
13
|
"geoBorderColor": "darkGray",
|
|
14
14
|
"territoriesLabel": "Territories",
|
|
15
15
|
"language": "en",
|
|
16
|
-
"hasRegions": false
|
|
16
|
+
"hasRegions": false,
|
|
17
|
+
"showDownloadMediaButton": false,
|
|
18
|
+
"displayAsHex": false,
|
|
19
|
+
"displayStateLabels": false,
|
|
20
|
+
"fullBorder": false,
|
|
21
|
+
"palette": {
|
|
22
|
+
"isReversed": false
|
|
23
|
+
},
|
|
24
|
+
"allowMapZoom": true,
|
|
25
|
+
"hideGeoColumnInTooltip": false,
|
|
26
|
+
"hidePrimaryColumnInTooltip": false,
|
|
27
|
+
"statePicked": {
|
|
28
|
+
"fipsCode": "01",
|
|
29
|
+
"stateName": "Alabama"
|
|
30
|
+
},
|
|
31
|
+
"showDownloadImgButton": true,
|
|
32
|
+
"showDownloadPdfButton": true
|
|
17
33
|
},
|
|
18
|
-
"
|
|
34
|
+
"type": "map",
|
|
35
|
+
"color": "yelloworangered",
|
|
19
36
|
"columns": {
|
|
20
37
|
"geo": {
|
|
21
38
|
"dataTable": true,
|
|
@@ -47,6 +64,12 @@
|
|
|
47
64
|
},
|
|
48
65
|
"geosInRegion": {
|
|
49
66
|
"name": ""
|
|
67
|
+
},
|
|
68
|
+
"latitude": {
|
|
69
|
+
"name": ""
|
|
70
|
+
},
|
|
71
|
+
"longitude": {
|
|
72
|
+
"name": ""
|
|
50
73
|
}
|
|
51
74
|
},
|
|
52
75
|
"legend": {
|
|
@@ -61,8 +84,43 @@
|
|
|
61
84
|
],
|
|
62
85
|
"unified": false,
|
|
63
86
|
"singleColumn": false,
|
|
64
|
-
"dynamicDescription": false
|
|
87
|
+
"dynamicDescription": false,
|
|
88
|
+
"descriptions": {},
|
|
89
|
+
"singleRow": false
|
|
90
|
+
},
|
|
91
|
+
"filters": [],
|
|
92
|
+
"dataTable": {
|
|
93
|
+
"title": "Data Table",
|
|
94
|
+
"forceDisplay": true
|
|
95
|
+
},
|
|
96
|
+
"tooltips": {
|
|
97
|
+
"appearanceType": "hover",
|
|
98
|
+
"linkLabel": "Learn More",
|
|
99
|
+
"capitalizeLabels": true
|
|
100
|
+
},
|
|
101
|
+
"runtime": {
|
|
102
|
+
"editorErrorMessage": []
|
|
103
|
+
},
|
|
104
|
+
"visual": {
|
|
105
|
+
"cityStyle": "pin",
|
|
106
|
+
"minBubbleSize": 1,
|
|
107
|
+
"maxBubbleSize": 20,
|
|
108
|
+
"extraBubbleBorder": false,
|
|
109
|
+
"showBubbleZeros": false
|
|
110
|
+
},
|
|
111
|
+
"mapPosition": {
|
|
112
|
+
"coordinates": [
|
|
113
|
+
0,
|
|
114
|
+
30
|
|
115
|
+
],
|
|
116
|
+
"zoom": 1
|
|
65
117
|
},
|
|
118
|
+
"sharing": {
|
|
119
|
+
"enabled": false,
|
|
120
|
+
"dataHost": "wcms-wp.cdc.gov",
|
|
121
|
+
"configUrl": "/wcms/4.0/cdc-wp/data-presentation/examples/city-data-map-example.json"
|
|
122
|
+
},
|
|
123
|
+
"usingWidgetLoader": true,
|
|
66
124
|
"data": [
|
|
67
125
|
{
|
|
68
126
|
"STATE": "AL",
|
|
@@ -495,25 +553,144 @@
|
|
|
495
553
|
"Rate": 14,
|
|
496
554
|
"Location": "Vehicle",
|
|
497
555
|
"URL": "https://www.cdc.gov/"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"STATE": "Arctic Slope Native Association Limited",
|
|
559
|
+
"Rate": 14,
|
|
560
|
+
"Location": "Vehicle",
|
|
561
|
+
"URL": "https://www.cdc.gov/"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"STATE": "Cherokee Nation",
|
|
565
|
+
"Rate": 12,
|
|
566
|
+
"Location": "Vehicle",
|
|
567
|
+
"URL": "https://www.cdc.gov/"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"STATE": "Cheyenne River Sioux Tribe",
|
|
571
|
+
"Rate": 11,
|
|
572
|
+
"Location": "Vehicle",
|
|
573
|
+
"URL": "https://www.cdc.gov/"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"STATE": "Fond du Lac Reservation",
|
|
577
|
+
"Rate": 22,
|
|
578
|
+
"Location": "Vehicle",
|
|
579
|
+
"URL": "https://www.cdc.gov/"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"STATE": "Great Plains Tribal Chairmen's Health Board",
|
|
583
|
+
"Rate": 18,
|
|
584
|
+
"Location": "Vehicle",
|
|
585
|
+
"URL": "https://www.cdc.gov/"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"STATE": "Hopi Tribe",
|
|
589
|
+
"Rate": 19,
|
|
590
|
+
"Location": "Vehicle",
|
|
591
|
+
"URL": "https://www.cdc.gov/"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"STATE": "Inter-Tribal Council of Michigan, Inc.",
|
|
595
|
+
"Rate": 14,
|
|
596
|
+
"Location": "Vehicle",
|
|
597
|
+
"URL": "https://www.cdc.gov/"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"STATE": "Kaw Nation of Oklahoma",
|
|
601
|
+
"Rate": 16,
|
|
602
|
+
"Location": "Vehicle",
|
|
603
|
+
"URL": "https://www.cdc.gov/"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"STATE": "Navajo Nation",
|
|
607
|
+
"Rate": 24,
|
|
608
|
+
"Location": "Vehicle",
|
|
609
|
+
"URL": "https://www.cdc.gov/"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"STATE": "South Puget Intertribal Planning Agency",
|
|
613
|
+
"Rate": 9,
|
|
614
|
+
"Location": "Vehicle",
|
|
615
|
+
"URL": "https://www.cdc.gov/"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"STATE": "Southeast Alaska Regional Health Consortium",
|
|
619
|
+
"Rate": 8,
|
|
620
|
+
"Location": "Vehicle",
|
|
621
|
+
"URL": "https://www.cdc.gov/"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"STATE": "Yukon-Kuskokwim Health Corporation",
|
|
625
|
+
"Rate": 5,
|
|
626
|
+
"Location": "Vehicle",
|
|
627
|
+
"URL": "https://www.cdc.gov/"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"STATE": "Modesto",
|
|
631
|
+
"Rate": 5,
|
|
632
|
+
"Location": "Vehicle",
|
|
633
|
+
"URL": "https://www.cdc.gov/"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"STATE": "Lakeview",
|
|
637
|
+
"Rate": 5,
|
|
638
|
+
"Location": "Vehicle",
|
|
639
|
+
"URL": "https://www.cdc.gov/"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"STATE": "Lockport",
|
|
643
|
+
"Rate": 5,
|
|
644
|
+
"Location": "Vehicle",
|
|
645
|
+
"URL": "https://www.cdc.gov/"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"STATE": "Warren",
|
|
649
|
+
"Rate": 5,
|
|
650
|
+
"Location": "Vehicle",
|
|
651
|
+
"URL": "https://www.cdc.gov/"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"STATE": "Salem, Oregon",
|
|
655
|
+
"Rate": 5,
|
|
656
|
+
"Location": "Vehicle",
|
|
657
|
+
"URL": "https://www.cdc.gov/"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"STATE": "Salem, Connecticut",
|
|
661
|
+
"Rate": 5,
|
|
662
|
+
"Location": "Vehicle",
|
|
663
|
+
"URL": "https://www.cdc.gov/"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"STATE": "Salem, Alabama",
|
|
667
|
+
"Rate": 5,
|
|
668
|
+
"Location": "Vehicle",
|
|
669
|
+
"URL": "https://www.cdc.gov/"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"STATE": "Salem, Florida",
|
|
673
|
+
"Rate": 5,
|
|
674
|
+
"Location": "Vehicle",
|
|
675
|
+
"URL": "https://www.cdc.gov/"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"STATE": "Salem, Massachusetts",
|
|
679
|
+
"Rate": 5,
|
|
680
|
+
"Location": "Vehicle",
|
|
681
|
+
"URL": "https://www.cdc.gov/"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"STATE": "San Benito",
|
|
685
|
+
"Rate": 5,
|
|
686
|
+
"Location": "Vehicle",
|
|
687
|
+
"URL": "https://www.cdc.gov/"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"STATE": "Alexandria",
|
|
691
|
+
"Rate": 5,
|
|
692
|
+
"Location": "Vehicle",
|
|
693
|
+
"URL": "https://www.cdc.gov/"
|
|
498
694
|
}
|
|
499
|
-
]
|
|
500
|
-
|
|
501
|
-
"enabled": false,
|
|
502
|
-
"dataHost": "wcms-wp.cdc.gov",
|
|
503
|
-
"configUrl": "/wcms/4.0/cdc-wp/data-presentation/examples/city-data-map-example.json"
|
|
504
|
-
},
|
|
505
|
-
"dataTable": {
|
|
506
|
-
"title": "Data Table"
|
|
507
|
-
},
|
|
508
|
-
"tooltips": {
|
|
509
|
-
"appearanceType": "hover",
|
|
510
|
-
"linkLabel": "Learn More",
|
|
511
|
-
"capitalizeLabels": true
|
|
512
|
-
},
|
|
513
|
-
"color": "yelloworangered",
|
|
514
|
-
"usingWidgetLoader": true,
|
|
515
|
-
"type": "map",
|
|
516
|
-
"visual": {
|
|
517
|
-
"cityStyle": "pin"
|
|
518
|
-
}
|
|
519
|
-
}
|
|
695
|
+
]
|
|
696
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/map",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.23.1",
|
|
4
4
|
"description": "React component for visualizing tabular data on a map of the United States or the world.",
|
|
5
5
|
"main": "dist/cdcmap",
|
|
6
6
|
"scripts": {
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.12.5",
|
|
23
|
-
"@cdc/core": "^4.
|
|
23
|
+
"@cdc/core": "^4.23.1",
|
|
24
24
|
"@emotion/core": "^10.0.28",
|
|
25
25
|
"@emotion/react": "^11.1.5",
|
|
26
26
|
"@visx/geo": "^1.13.0",
|
|
27
|
-
"canvg": "^3.0.7",
|
|
28
27
|
"chroma": "0.0.1",
|
|
29
28
|
"chroma-js": "^2.1.0",
|
|
30
29
|
"d3": "^6.6.0",
|
|
@@ -49,5 +48,5 @@
|
|
|
49
48
|
"resolutions": {
|
|
50
49
|
"@types/react": "17.x"
|
|
51
50
|
},
|
|
52
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "58163844cc9ce2c379235413b19f49679eab4bef"
|
|
53
52
|
}
|