@cdc/map 4.23.11 → 4.24.2
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 +52413 -46767
- package/examples/default-patterns.json +581 -0
- package/examples/default-usa.json +159 -57
- package/examples/test.json +0 -9614
- package/examples/zika.json +1194 -0
- package/index.html +17 -6
- package/package.json +3 -3
- package/src/CdcMap.tsx +39 -31
- package/src/components/CityList.jsx +34 -23
- package/src/components/{EditorPanel.jsx → EditorPanel/components/EditorPanel.tsx} +31 -64
- package/src/components/{HexShapeSettings.jsx → EditorPanel/components/HexShapeSettings.tsx} +2 -51
- package/src/components/EditorPanel/components/Inputs.tsx +59 -0
- package/src/components/EditorPanel/components/Panel.PatternSettings.tsx +140 -0
- package/src/components/EditorPanel/components/Panels.tsx +7 -0
- package/src/components/EditorPanel/index.tsx +3 -0
- package/src/components/Geo.jsx +4 -2
- package/src/components/Legend/components/Legend.tsx +183 -0
- package/src/components/Legend/components/LegendItem.Hex.tsx +49 -0
- package/src/components/Legend/components/index.scss +235 -0
- package/src/components/Legend/index.tsx +3 -0
- package/src/components/UsaMap/components/Territory/Territory.Hexagon.tsx +129 -0
- package/src/components/UsaMap/components/Territory/Territory.Rectangle.tsx +66 -0
- package/src/components/UsaMap/components/Territory/index.tsx +9 -0
- package/src/components/{CountyMap.jsx → UsaMap/components/UsaMap.County.tsx} +9 -9
- package/src/components/{UsaRegionMap.jsx → UsaMap/components/UsaMap.Region.tsx} +1 -3
- package/src/components/{SingleStateMap.jsx → UsaMap/components/UsaMap.SingleState.tsx} +8 -10
- package/src/components/{UsaMap.jsx → UsaMap/components/UsaMap.State.tsx} +55 -127
- package/src/components/UsaMap/index.tsx +13 -0
- package/src/components/{WorldMap.jsx → WorldMap/components/WorldMap.jsx} +20 -14
- package/src/components/WorldMap/data/world-topo-guiana-update.json +1 -0
- package/src/components/WorldMap/data/world-topo-old.json +1 -0
- package/src/components/WorldMap/data/world-topo-recent.json +39194 -0
- package/src/components/WorldMap/data/world-topo.json +1 -0
- package/src/components/WorldMap/index.tsx +3 -0
- package/src/context.ts +2 -1
- package/src/data/initial-state.js +5 -3
- package/src/data/supported-geos.js +21 -1
- package/src/hooks/useTooltip.ts +4 -4
- package/src/scss/editor-panel.scss +2 -3
- package/src/scss/main.scss +11 -1
- package/src/scss/map.scss +22 -12
- package/src/types/MapConfig.ts +149 -0
- package/src/types/MapContext.ts +45 -0
- package/src/types/runtimeLegend.ts +1 -0
- package/examples/world-geocode-data.json +0 -18
- package/examples/world-geocode.json +0 -108
- package/src/components/Sidebar.tsx +0 -142
- package/src/data/abbreviations.js +0 -57
- package/src/data/feature-test.json +0 -73
- package/src/data/newtest.json +0 -1
- package/src/data/state-abbreviations.js +0 -60
- package/src/data/supported-cities.csv +0 -165
- package/src/data/test.json +0 -1
- package/src/data/world-topo.json +0 -1
- package/src/scss/sidebar.scss +0 -230
- /package/src/{data → components/UsaMap/data}/cb_2019_us_county_20m.json +0 -0
- /package/src/{data → components/UsaMap/data}/us-hex-topo.json +0 -0
- /package/src/{data → components/UsaMap/data}/us-regions-topo-2.json +0 -0
- /package/src/{data → components/UsaMap/data}/us-regions-topo.json +0 -0
- /package/src/{data → components/UsaMap/data}/us-topo.json +0 -0
|
@@ -1,4 +1,162 @@
|
|
|
1
1
|
{
|
|
2
|
+
"general": {
|
|
3
|
+
"geoType": "us",
|
|
4
|
+
"geoBorderColor": "darkGray",
|
|
5
|
+
"headerColor": "theme-blue",
|
|
6
|
+
"showTitle": true,
|
|
7
|
+
"showSidebar": true,
|
|
8
|
+
"showDownloadButton": true,
|
|
9
|
+
"showDownloadMediaButton": false,
|
|
10
|
+
"displayAsHex": false,
|
|
11
|
+
"displayStateLabels": false,
|
|
12
|
+
"territoriesLabel": "Territories",
|
|
13
|
+
"language": "en",
|
|
14
|
+
"hasRegions": false,
|
|
15
|
+
"expandDataTable": true,
|
|
16
|
+
"fullBorder": false,
|
|
17
|
+
"type": "data",
|
|
18
|
+
"title": "Default US Map",
|
|
19
|
+
"territoriesAlwaysShow": false,
|
|
20
|
+
"geoLabelOverride": "",
|
|
21
|
+
"convertFipsCodes": true,
|
|
22
|
+
"palette": {
|
|
23
|
+
"isReversed": false
|
|
24
|
+
},
|
|
25
|
+
"allowMapZoom": true,
|
|
26
|
+
"hideGeoColumnInTooltip": false,
|
|
27
|
+
"hidePrimaryColumnInTooltip": false,
|
|
28
|
+
"statePicked": {
|
|
29
|
+
"fipsCode": "01",
|
|
30
|
+
"stateName": "Alabama"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"type": "map",
|
|
34
|
+
"color": "pinkpurple",
|
|
35
|
+
"columns": {
|
|
36
|
+
"geo": {
|
|
37
|
+
"name": "State",
|
|
38
|
+
"label": "Location",
|
|
39
|
+
"tooltip": false,
|
|
40
|
+
"dataTable": true
|
|
41
|
+
},
|
|
42
|
+
"primary": {
|
|
43
|
+
"dataTable": true,
|
|
44
|
+
"tooltip": true,
|
|
45
|
+
"prefix": "",
|
|
46
|
+
"suffix": "",
|
|
47
|
+
"name": "Condition",
|
|
48
|
+
"label": ""
|
|
49
|
+
},
|
|
50
|
+
"navigate": {
|
|
51
|
+
"name": "Condition"
|
|
52
|
+
},
|
|
53
|
+
"latitude": {
|
|
54
|
+
"name": ""
|
|
55
|
+
},
|
|
56
|
+
"longitude": {
|
|
57
|
+
"name": ""
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"legend": {
|
|
61
|
+
"descriptions": {},
|
|
62
|
+
"specialClasses": [],
|
|
63
|
+
"unified": false,
|
|
64
|
+
"singleColumn": false,
|
|
65
|
+
"dynamicDescription": false,
|
|
66
|
+
"type": "category",
|
|
67
|
+
"numberOfItems": 3,
|
|
68
|
+
"position": "side",
|
|
69
|
+
"title": "Legend",
|
|
70
|
+
"singleRow": false,
|
|
71
|
+
"verticalSorted": false,
|
|
72
|
+
"showSpecialClassesLast": false,
|
|
73
|
+
"categoryValuesOrder": [
|
|
74
|
+
"Arboviral 2",
|
|
75
|
+
"Arboviral 3",
|
|
76
|
+
"Arboviral 4",
|
|
77
|
+
"Arboviral 5",
|
|
78
|
+
"Arboviral 6",
|
|
79
|
+
"Arboviral 7",
|
|
80
|
+
"Arboviral 8",
|
|
81
|
+
"Arboviral 9",
|
|
82
|
+
"Arboviral 10",
|
|
83
|
+
"Arboviral 11",
|
|
84
|
+
"Arboviral 12",
|
|
85
|
+
"Arboviral",
|
|
86
|
+
"Babesiosis",
|
|
87
|
+
"Congenital Syphilis",
|
|
88
|
+
"FDD",
|
|
89
|
+
"Generic v2.0"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"filters": [],
|
|
93
|
+
"table": {
|
|
94
|
+
"wrapColumns": false,
|
|
95
|
+
"label": "Data Table",
|
|
96
|
+
"expanded": false,
|
|
97
|
+
"limitHeight": false,
|
|
98
|
+
"height": "",
|
|
99
|
+
"caption": "",
|
|
100
|
+
"showDownloadUrl": false,
|
|
101
|
+
"showDataTableLink": true,
|
|
102
|
+
"showFullGeoNameInCSV": false,
|
|
103
|
+
"forceDisplay": true,
|
|
104
|
+
"download": false,
|
|
105
|
+
"indexLabel": ""
|
|
106
|
+
},
|
|
107
|
+
"tooltips": {
|
|
108
|
+
"appearanceType": "hover",
|
|
109
|
+
"linkLabel": "Learn More",
|
|
110
|
+
"capitalizeLabels": true,
|
|
111
|
+
"opacity": 90
|
|
112
|
+
},
|
|
113
|
+
"runtime": {
|
|
114
|
+
"editorErrorMessage": []
|
|
115
|
+
},
|
|
116
|
+
"visual": {
|
|
117
|
+
"minBubbleSize": 1,
|
|
118
|
+
"maxBubbleSize": 20,
|
|
119
|
+
"extraBubbleBorder": false,
|
|
120
|
+
"cityStyle": "circle",
|
|
121
|
+
"geoCodeCircleSize": 2,
|
|
122
|
+
"showBubbleZeros": false
|
|
123
|
+
},
|
|
124
|
+
"mapPosition": {
|
|
125
|
+
"coordinates": [
|
|
126
|
+
0,
|
|
127
|
+
30
|
|
128
|
+
],
|
|
129
|
+
"zoom": 1
|
|
130
|
+
},
|
|
131
|
+
"map": {
|
|
132
|
+
"layers": [],
|
|
133
|
+
"patterns": [
|
|
134
|
+
{
|
|
135
|
+
"dataKey": "State",
|
|
136
|
+
"pattern": "circles",
|
|
137
|
+
"dataValue": "GU"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"hexMap": {
|
|
142
|
+
"type": "",
|
|
143
|
+
"shapeGroups": [
|
|
144
|
+
{
|
|
145
|
+
"legendTitle": "",
|
|
146
|
+
"legendDescription": "",
|
|
147
|
+
"items": [
|
|
148
|
+
{
|
|
149
|
+
"key": "",
|
|
150
|
+
"shape": "Arrow up",
|
|
151
|
+
"column": "",
|
|
152
|
+
"operator": "=",
|
|
153
|
+
"value": ""
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"filterBehavior": "Filter Change",
|
|
2
160
|
"data": [
|
|
3
161
|
{
|
|
4
162
|
"Condition": "Arboviral 2",
|
|
@@ -906,26 +1064,6 @@
|
|
|
906
1064
|
"dataDescription": {
|
|
907
1065
|
"horizontal": true
|
|
908
1066
|
},
|
|
909
|
-
"newViz": true,
|
|
910
|
-
"type": "map",
|
|
911
|
-
"general": {
|
|
912
|
-
"geoType": "us",
|
|
913
|
-
"geoBorderColor": "darkGray",
|
|
914
|
-
"headerColor": "theme-blue",
|
|
915
|
-
"showTitle": true,
|
|
916
|
-
"showSidebar": true,
|
|
917
|
-
"showDownloadButton": true,
|
|
918
|
-
"showDownloadMediaButton": false,
|
|
919
|
-
"displayAsHex": false,
|
|
920
|
-
"displayStateLabels": false,
|
|
921
|
-
"territoriesLabel": "Territories",
|
|
922
|
-
"language": "en",
|
|
923
|
-
"hasRegions": false,
|
|
924
|
-
"expandDataTable": true,
|
|
925
|
-
"fullBorder": false,
|
|
926
|
-
"type": "data",
|
|
927
|
-
"title": "Default US Map"
|
|
928
|
-
},
|
|
929
1067
|
"geoType": "us",
|
|
930
1068
|
"geoBorderColor": "darkGray",
|
|
931
1069
|
"headerColor": "theme-blue",
|
|
@@ -940,45 +1078,9 @@
|
|
|
940
1078
|
"hasRegions": false,
|
|
941
1079
|
"expandDataTable": true,
|
|
942
1080
|
"fullBorder": false,
|
|
943
|
-
"color": "pinkpurple",
|
|
944
|
-
"columns": {
|
|
945
|
-
"geo": {
|
|
946
|
-
"name": "State",
|
|
947
|
-
"label": "Location",
|
|
948
|
-
"tooltip": false,
|
|
949
|
-
"dataTable": true
|
|
950
|
-
},
|
|
951
|
-
"primary": {
|
|
952
|
-
"dataTable": true,
|
|
953
|
-
"tooltip": true,
|
|
954
|
-
"prefix": "",
|
|
955
|
-
"suffix": "",
|
|
956
|
-
"name": "Condition",
|
|
957
|
-
"label": ""
|
|
958
|
-
},
|
|
959
|
-
"navigate": {
|
|
960
|
-
"name": "Condition"
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
|
-
"legend": {
|
|
964
|
-
"descriptions": {},
|
|
965
|
-
"specialClasses": [],
|
|
966
|
-
"unified": false,
|
|
967
|
-
"singleColumn": false,
|
|
968
|
-
"dynamicDescription": false,
|
|
969
|
-
"type": "category",
|
|
970
|
-
"numberOfItems": 3,
|
|
971
|
-
"position": "side",
|
|
972
|
-
"title": "Legend"
|
|
973
|
-
},
|
|
974
|
-
"filters": [],
|
|
975
1081
|
"dataTable": {
|
|
976
1082
|
"title": "Data Table",
|
|
977
1083
|
"forceDisplay": true
|
|
978
1084
|
},
|
|
979
|
-
"
|
|
980
|
-
"appearanceType": "hover",
|
|
981
|
-
"linkLabel": "Learn More",
|
|
982
|
-
"capitalizeLabels": true
|
|
983
|
-
}
|
|
1085
|
+
"validated": 4.23
|
|
984
1086
|
}
|