@cdc/map 4.24.3 → 4.24.5
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 +29115 -28828
- package/examples/example-city-state.json +51 -17
- package/examples/hex-colors.json +507 -0
- package/index.html +8 -8
- package/package.json +3 -3
- package/src/CdcMap.tsx +151 -115
- package/src/components/BubbleList.jsx +8 -5
- package/src/components/CityList.jsx +5 -5
- package/src/components/EditorPanel/components/EditorPanel.tsx +1390 -1436
- package/src/components/EditorPanel/components/Error.tsx +12 -0
- package/src/components/EditorPanel/components/Panel.PatternSettings-style.css +5 -0
- package/src/components/EditorPanel/components/Panel.PatternSettings.tsx +18 -1
- package/src/components/Legend/components/Legend.tsx +18 -7
- package/src/components/Legend/components/LegendItem.Hex.tsx +1 -1
- package/src/components/UsaMap/components/HexIcon.tsx +2 -2
- package/src/components/UsaMap/components/Territory/Territory.Rectangle.tsx +1 -1
- package/src/components/UsaMap/components/UsaMap.County.tsx +7 -4
- package/src/components/UsaMap/components/UsaMap.Region.tsx +3 -2
- package/src/components/UsaMap/components/UsaMap.SingleState.tsx +5 -3
- package/src/components/UsaMap/components/UsaMap.State.tsx +25 -10
- package/src/components/WorldMap/{components/WorldMap.jsx → WorldMap.tsx} +26 -12
- package/src/components/WorldMap/index.tsx +1 -1
- package/src/context.ts +2 -1
- package/src/data/supported-geos.js +1 -0
- package/src/hooks/useMapLayers.tsx +2 -2
- package/src/scss/editor-panel.scss +1 -12
- package/src/scss/main.scss +2 -1
- package/src/scss/map.scss +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
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",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"showDownloadImgButton": false,
|
|
32
32
|
"showDownloadPdfButton": false,
|
|
33
33
|
"territoriesAlwaysShow": false,
|
|
34
|
-
"geoLabelOverride": ""
|
|
34
|
+
"geoLabelOverride": "",
|
|
35
|
+
"convertFipsCodes": true
|
|
35
36
|
},
|
|
36
37
|
"type": "map",
|
|
37
38
|
"color": "yelloworangered",
|
|
@@ -97,20 +98,29 @@
|
|
|
97
98
|
"dynamicDescription": false,
|
|
98
99
|
"descriptions": {},
|
|
99
100
|
"singleRow": false,
|
|
100
|
-
"showSpecialClassesLast": false
|
|
101
|
-
|
|
102
|
-
"dataTable": {
|
|
103
|
-
"title": "Data Table",
|
|
104
|
-
"forceDisplay": true
|
|
101
|
+
"showSpecialClassesLast": false,
|
|
102
|
+
"verticalSorted": false
|
|
105
103
|
},
|
|
104
|
+
"filters": [],
|
|
106
105
|
"table": {
|
|
107
106
|
"showDownloadUrl": false,
|
|
108
|
-
"showDataTableLink": true
|
|
107
|
+
"showDataTableLink": true,
|
|
108
|
+
"wrapColumns": false,
|
|
109
|
+
"label": "Data Table",
|
|
110
|
+
"expanded": true,
|
|
111
|
+
"limitHeight": false,
|
|
112
|
+
"height": "",
|
|
113
|
+
"caption": "",
|
|
114
|
+
"showFullGeoNameInCSV": false,
|
|
115
|
+
"forceDisplay": true,
|
|
116
|
+
"download": true,
|
|
117
|
+
"indexLabel": ""
|
|
109
118
|
},
|
|
110
119
|
"tooltips": {
|
|
111
120
|
"appearanceType": "hover",
|
|
112
121
|
"linkLabel": "Learn More",
|
|
113
|
-
"capitalizeLabels": true
|
|
122
|
+
"capitalizeLabels": true,
|
|
123
|
+
"opacity": 90
|
|
114
124
|
},
|
|
115
125
|
"runtime": {
|
|
116
126
|
"editorErrorMessage": []
|
|
@@ -121,17 +131,40 @@
|
|
|
121
131
|
"maxBubbleSize": 20,
|
|
122
132
|
"extraBubbleBorder": false,
|
|
123
133
|
"showBubbleZeros": false,
|
|
124
|
-
"geoCodeCircleSize": 2
|
|
134
|
+
"geoCodeCircleSize": 2,
|
|
135
|
+
"cityStyleLabel": "",
|
|
136
|
+
"additionalCityStyles": []
|
|
125
137
|
},
|
|
126
138
|
"mapPosition": {
|
|
127
|
-
"coordinates": [
|
|
128
|
-
0,
|
|
129
|
-
30
|
|
130
|
-
],
|
|
139
|
+
"coordinates": [0, 30],
|
|
131
140
|
"zoom": 1
|
|
132
141
|
},
|
|
133
142
|
"map": {
|
|
134
|
-
"layers": []
|
|
143
|
+
"layers": [],
|
|
144
|
+
"patterns": []
|
|
145
|
+
},
|
|
146
|
+
"hexMap": {
|
|
147
|
+
"type": "",
|
|
148
|
+
"shapeGroups": [
|
|
149
|
+
{
|
|
150
|
+
"legendTitle": "",
|
|
151
|
+
"legendDescription": "",
|
|
152
|
+
"items": [
|
|
153
|
+
{
|
|
154
|
+
"key": "",
|
|
155
|
+
"shape": "Arrow Up",
|
|
156
|
+
"column": "",
|
|
157
|
+
"operator": "=",
|
|
158
|
+
"value": ""
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"filterBehavior": "Filter Change",
|
|
165
|
+
"dataTable": {
|
|
166
|
+
"title": "Data Table",
|
|
167
|
+
"forceDisplay": true
|
|
135
168
|
},
|
|
136
169
|
"sharing": {
|
|
137
170
|
"enabled": false,
|
|
@@ -807,5 +840,6 @@
|
|
|
807
840
|
"URL": "https://www.cdc.gov/"
|
|
808
841
|
}
|
|
809
842
|
],
|
|
810
|
-
"filterStyle": "Filter Changes"
|
|
811
|
-
|
|
843
|
+
"filterStyle": "Filter Changes",
|
|
844
|
+
"version": "4.24.3"
|
|
845
|
+
}
|
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
{
|
|
2
|
+
"general": {
|
|
3
|
+
"geoType": "us",
|
|
4
|
+
"geoBorderColor": "darkGray",
|
|
5
|
+
"headerColor": "theme-slate",
|
|
6
|
+
"showTitle": true,
|
|
7
|
+
"showSidebar": true,
|
|
8
|
+
"showDownloadButton": true,
|
|
9
|
+
"showDownloadMediaButton": false,
|
|
10
|
+
"displayAsHex": true,
|
|
11
|
+
"displayStateLabels": false,
|
|
12
|
+
"territoriesLabel": "Territories",
|
|
13
|
+
"language": "en",
|
|
14
|
+
"hasRegions": false,
|
|
15
|
+
"expandDataTable": false,
|
|
16
|
+
"fullBorder": false,
|
|
17
|
+
"type": "data",
|
|
18
|
+
"palette": {
|
|
19
|
+
"isReversed": true
|
|
20
|
+
},
|
|
21
|
+
"statePicked": {
|
|
22
|
+
"fipsCode": "01",
|
|
23
|
+
"stateName": "Alabama"
|
|
24
|
+
},
|
|
25
|
+
"title": "Hex Map With Arrows",
|
|
26
|
+
"subtext": "- Clarification Text Added Here - State data was left out intentionally to reflect how the map behaves with incomplete data. ",
|
|
27
|
+
"territoriesAlwaysShow": false,
|
|
28
|
+
"geoLabelOverride": "",
|
|
29
|
+
"convertFipsCodes": true,
|
|
30
|
+
"allowMapZoom": true,
|
|
31
|
+
"hideGeoColumnInTooltip": false,
|
|
32
|
+
"hidePrimaryColumnInTooltip": false,
|
|
33
|
+
"superTitle": ""
|
|
34
|
+
},
|
|
35
|
+
"type": "map",
|
|
36
|
+
"color": "orangeredreverse",
|
|
37
|
+
"columns": {
|
|
38
|
+
"geo": {
|
|
39
|
+
"name": "STATE",
|
|
40
|
+
"label": "Location",
|
|
41
|
+
"tooltip": false,
|
|
42
|
+
"dataTable": true
|
|
43
|
+
},
|
|
44
|
+
"primary": {
|
|
45
|
+
"dataTable": true,
|
|
46
|
+
"tooltip": true,
|
|
47
|
+
"prefix": "",
|
|
48
|
+
"suffix": "",
|
|
49
|
+
"name": "Rate",
|
|
50
|
+
"label": ""
|
|
51
|
+
},
|
|
52
|
+
"navigate": {
|
|
53
|
+
"name": ""
|
|
54
|
+
},
|
|
55
|
+
"latitude": {
|
|
56
|
+
"name": ""
|
|
57
|
+
},
|
|
58
|
+
"longitude": {
|
|
59
|
+
"name": ""
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"legend": {
|
|
63
|
+
"descriptions": {},
|
|
64
|
+
"specialClasses": [],
|
|
65
|
+
"unified": false,
|
|
66
|
+
"singleColumn": true,
|
|
67
|
+
"dynamicDescription": false,
|
|
68
|
+
"type": "equalnumber",
|
|
69
|
+
"numberOfItems": 5,
|
|
70
|
+
"position": "side",
|
|
71
|
+
"title": "Legend",
|
|
72
|
+
"description": "Lorem Ipsum - Text added to legend description",
|
|
73
|
+
"singleRow": false,
|
|
74
|
+
"verticalSorted": false,
|
|
75
|
+
"showSpecialClassesLast": false
|
|
76
|
+
},
|
|
77
|
+
"filters": [],
|
|
78
|
+
"table": {
|
|
79
|
+
"wrapColumns": false,
|
|
80
|
+
"label": "Data Table",
|
|
81
|
+
"expanded": false,
|
|
82
|
+
"limitHeight": false,
|
|
83
|
+
"height": "",
|
|
84
|
+
"caption": "",
|
|
85
|
+
"showDownloadUrl": false,
|
|
86
|
+
"showDataTableLink": true,
|
|
87
|
+
"showFullGeoNameInCSV": false,
|
|
88
|
+
"forceDisplay": true,
|
|
89
|
+
"download": true,
|
|
90
|
+
"indexLabel": ""
|
|
91
|
+
},
|
|
92
|
+
"tooltips": {
|
|
93
|
+
"appearanceType": "hover",
|
|
94
|
+
"linkLabel": "Learn More",
|
|
95
|
+
"capitalizeLabels": true,
|
|
96
|
+
"opacity": 90
|
|
97
|
+
},
|
|
98
|
+
"visual": {
|
|
99
|
+
"minBubbleSize": 1,
|
|
100
|
+
"maxBubbleSize": 20,
|
|
101
|
+
"extraBubbleBorder": false,
|
|
102
|
+
"cityStyle": "circle",
|
|
103
|
+
"cityStyleLabel": "",
|
|
104
|
+
"showBubbleZeros": false,
|
|
105
|
+
"additionalCityStyles": [],
|
|
106
|
+
"geoCodeCircleSize": 8
|
|
107
|
+
},
|
|
108
|
+
"mapPosition": {
|
|
109
|
+
"coordinates": [
|
|
110
|
+
0,
|
|
111
|
+
30
|
|
112
|
+
],
|
|
113
|
+
"zoom": 1
|
|
114
|
+
},
|
|
115
|
+
"map": {
|
|
116
|
+
"layers": [],
|
|
117
|
+
"patterns": []
|
|
118
|
+
},
|
|
119
|
+
"hexMap": {
|
|
120
|
+
"type": "shapes",
|
|
121
|
+
"shapeGroups": [
|
|
122
|
+
{
|
|
123
|
+
"legendTitle": "Trends",
|
|
124
|
+
"legendDescription": "The arrows reflect the trends of reported numbers",
|
|
125
|
+
"items": [
|
|
126
|
+
{
|
|
127
|
+
"key": "Rate",
|
|
128
|
+
"shape": "Arrow Down",
|
|
129
|
+
"column": "",
|
|
130
|
+
"operator": "<=",
|
|
131
|
+
"value": "40"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "Rate",
|
|
135
|
+
"shape": "Arrow Right",
|
|
136
|
+
"column": "",
|
|
137
|
+
"operator": ">=",
|
|
138
|
+
"value": "80"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"filterBehavior": "Filter Change",
|
|
145
|
+
"dataTable": {
|
|
146
|
+
"title": "Data Table",
|
|
147
|
+
"forceDisplay": true,
|
|
148
|
+
"caption": "Lorem Ipsum - Text added to Data Table Caption",
|
|
149
|
+
"limitHeight": true,
|
|
150
|
+
"height": "100"
|
|
151
|
+
},
|
|
152
|
+
"data": [
|
|
153
|
+
{
|
|
154
|
+
"STATE": "Alabama",
|
|
155
|
+
"Rate": 130,
|
|
156
|
+
"Location": "Vehicle",
|
|
157
|
+
"URL": "https://www.cdc.gov/"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"STATE": "Alaska",
|
|
161
|
+
"Rate": 40,
|
|
162
|
+
"Location": "Work",
|
|
163
|
+
"URL": "https://www.cdc.gov/"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"STATE": "American Samoa",
|
|
167
|
+
"Rate": 55,
|
|
168
|
+
"Location": "Home",
|
|
169
|
+
"URL": "https://www.cdc.gov/"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"STATE": "Arizona",
|
|
173
|
+
"Rate": 57,
|
|
174
|
+
"Location": "School",
|
|
175
|
+
"URL": "https://www.cdc.gov/"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"STATE": "Arkansas",
|
|
179
|
+
"Rate": 60,
|
|
180
|
+
"Location": "School",
|
|
181
|
+
"URL": "https://www.cdc.gov/"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"STATE": "California",
|
|
185
|
+
"Rate": 30,
|
|
186
|
+
"Location": "Home",
|
|
187
|
+
"URL": "https://www.cdc.gov/"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"STATE": "Colorado",
|
|
191
|
+
"Rate": 40,
|
|
192
|
+
"Location": "Vehicle",
|
|
193
|
+
"URL": "https://www.cdc.gov/"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"STATE": "Connecticut",
|
|
197
|
+
"Rate": 55,
|
|
198
|
+
"Location": "Home",
|
|
199
|
+
"URL": "https://www.cdc.gov/"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"STATE": "Deleware",
|
|
203
|
+
"Rate": "57",
|
|
204
|
+
"Location": "Home",
|
|
205
|
+
"URL": "https://www.cdc.gov/"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"STATE": "DC",
|
|
209
|
+
"Rate": 60,
|
|
210
|
+
"Location": "Home",
|
|
211
|
+
"URL": "https://www.cdc.gov/"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"STATE": "Florida",
|
|
215
|
+
"Rate": 30,
|
|
216
|
+
"Location": "Work",
|
|
217
|
+
"URL": "https://www.cdc.gov/"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"STATE": "Georgia",
|
|
221
|
+
"Rate": 40,
|
|
222
|
+
"Location": "Work",
|
|
223
|
+
"URL": "https://www.cdc.gov/"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"STATE": "Guam",
|
|
227
|
+
"Rate": 55,
|
|
228
|
+
"Location": "Home",
|
|
229
|
+
"URL": "https://www.cdc.gov/"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"STATE": "Hawaii",
|
|
233
|
+
"Rate": 57,
|
|
234
|
+
"Location": "School",
|
|
235
|
+
"URL": "https://www.cdc.gov/"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"STATE": "Idaho",
|
|
239
|
+
"Rate": 60,
|
|
240
|
+
"Location": "School",
|
|
241
|
+
"URL": "https://www.cdc.gov/"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"STATE": "Illinois",
|
|
245
|
+
"Rate": 30,
|
|
246
|
+
"Location": "Work",
|
|
247
|
+
"URL": "https://www.cdc.gov/"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"STATE": "Indiana",
|
|
251
|
+
"Rate": 40,
|
|
252
|
+
"Location": "Vehicle",
|
|
253
|
+
"URL": "https://www.cdc.gov/"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"STATE": "Iowa",
|
|
257
|
+
"Rate": 55,
|
|
258
|
+
"Location": "Home",
|
|
259
|
+
"URL": "https://www.cdc.gov/"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"STATE": "Kansas",
|
|
263
|
+
"Rate": 57,
|
|
264
|
+
"Location": "Home",
|
|
265
|
+
"URL": "https://www.cdc.gov/"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"STATE": "Kentucky",
|
|
269
|
+
"Rate": 60,
|
|
270
|
+
"Location": "NA",
|
|
271
|
+
"URL": "https://www.cdc.gov/"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"STATE": "Louisiana",
|
|
275
|
+
"Rate": 30,
|
|
276
|
+
"Location": "Vehicle",
|
|
277
|
+
"URL": "https://www.cdc.gov/"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"STATE": "Maine",
|
|
281
|
+
"Rate": 40,
|
|
282
|
+
"Location": "Work",
|
|
283
|
+
"URL": "https://www.cdc.gov/"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"STATE": "Marshall Islands",
|
|
287
|
+
"Rate": 55,
|
|
288
|
+
"Location": "Home",
|
|
289
|
+
"URL": "https://www.cdc.gov/"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"STATE": "Maryland",
|
|
293
|
+
"Rate": 57,
|
|
294
|
+
"Location": "School",
|
|
295
|
+
"URL": "https://www.cdc.gov/"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"STATE": "Massachusetts",
|
|
299
|
+
"Rate": 60,
|
|
300
|
+
"Location": "School",
|
|
301
|
+
"URL": "https://www.cdc.gov/"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"STATE": "Michigan",
|
|
305
|
+
"Rate": 12,
|
|
306
|
+
"Location": "Work",
|
|
307
|
+
"URL": "https://www.cdc.gov/"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"STATE": "Micronesia",
|
|
311
|
+
"Rate": 65,
|
|
312
|
+
"Location": "Vehicle",
|
|
313
|
+
"URL": "https://www.cdc.gov/"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"STATE": "Minnesota",
|
|
317
|
+
"Rate": 55,
|
|
318
|
+
"Location": "Home",
|
|
319
|
+
"URL": "https://www.cdc.gov/"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"STATE": "Mississippi",
|
|
323
|
+
"Rate": 57,
|
|
324
|
+
"Location": "Home",
|
|
325
|
+
"URL": "https://www.cdc.gov/"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"STATE": "Montana",
|
|
329
|
+
"Rate": 60,
|
|
330
|
+
"Location": "Home",
|
|
331
|
+
"URL": "https://www.cdc.gov/"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"STATE": "Montana",
|
|
335
|
+
"Rate": 30,
|
|
336
|
+
"Location": "Vehicle",
|
|
337
|
+
"URL": "https://www.cdc.gov/"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"STATE": "Nebraska",
|
|
341
|
+
"Rate": 40,
|
|
342
|
+
"Location": "Work",
|
|
343
|
+
"URL": "https://www.cdc.gov/"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"STATE": "Nevada",
|
|
347
|
+
"Rate": 55,
|
|
348
|
+
"Location": "Home",
|
|
349
|
+
"URL": "https://www.cdc.gov/"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"STATE": "New Hampshire",
|
|
353
|
+
"Rate": 57,
|
|
354
|
+
"Location": "School",
|
|
355
|
+
"URL": "https://www.cdc.gov/"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"STATE": "New Jersey",
|
|
359
|
+
"Rate": 60,
|
|
360
|
+
"Location": "School",
|
|
361
|
+
"URL": "https://www.cdc.gov/"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"STATE": "New Mexico",
|
|
365
|
+
"Rate": 12,
|
|
366
|
+
"Location": "Work",
|
|
367
|
+
"URL": "https://www.cdc.gov/"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"STATE": "New York",
|
|
371
|
+
"Rate": 40,
|
|
372
|
+
"Location": "Vehicle",
|
|
373
|
+
"URL": "https://www.cdc.gov/"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"STATE": "North Carolina",
|
|
377
|
+
"Rate": 55,
|
|
378
|
+
"Location": "Home",
|
|
379
|
+
"URL": "https://www.cdc.gov/"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"STATE": "North Dakota",
|
|
383
|
+
"Rate": 57,
|
|
384
|
+
"Location": "Home",
|
|
385
|
+
"URL": "https://www.cdc.gov/"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"STATE": "Northern Mariana Islands",
|
|
389
|
+
"Rate": "60",
|
|
390
|
+
"Location": "Home",
|
|
391
|
+
"URL": "https://www.cdc.gov/"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"STATE": "Ohio",
|
|
395
|
+
"Rate": 88,
|
|
396
|
+
"Location": "Vehicle",
|
|
397
|
+
"URL": "https://www.cdc.gov/"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"STATE": "Oklahoma",
|
|
401
|
+
"Rate": 40,
|
|
402
|
+
"Location": "Work",
|
|
403
|
+
"URL": "https://www.cdc.gov/"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"STATE": "Oregon",
|
|
407
|
+
"Rate": 55,
|
|
408
|
+
"Location": "Home",
|
|
409
|
+
"URL": "https://www.cdc.gov/"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"STATE": "Palau",
|
|
413
|
+
"Rate": 15,
|
|
414
|
+
"Location": "School",
|
|
415
|
+
"URL": "https://www.cdc.gov/"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"STATE": "Pennsylvania",
|
|
419
|
+
"Rate": 60,
|
|
420
|
+
"Location": "School",
|
|
421
|
+
"URL": "https://www.cdc.gov/"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"STATE": "Puerto Rico",
|
|
425
|
+
"Rate": 30,
|
|
426
|
+
"Location": "Work",
|
|
427
|
+
"URL": "https://www.cdc.gov/"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"STATE": "Rhode Island",
|
|
431
|
+
"Rate": 40,
|
|
432
|
+
"Location": "Vehicle",
|
|
433
|
+
"URL": "https://www.cdc.gov/"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"STATE": "South Carolina",
|
|
437
|
+
"Rate": 55,
|
|
438
|
+
"Location": "Home",
|
|
439
|
+
"URL": "https://www.cdc.gov/"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"STATE": "South Dakota",
|
|
443
|
+
"Rate": 86,
|
|
444
|
+
"Location": "Home",
|
|
445
|
+
"URL": "https://www.cdc.gov/"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"STATE": "Tennessee",
|
|
449
|
+
"Rate": 60,
|
|
450
|
+
"Location": "Home",
|
|
451
|
+
"URL": "https://www.cdc.gov/"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"STATE": "Texas",
|
|
455
|
+
"Rate": 30,
|
|
456
|
+
"Location": "Vehicle",
|
|
457
|
+
"URL": "https://www.cdc.gov/"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"STATE": "Utah",
|
|
461
|
+
"Rate": 54,
|
|
462
|
+
"Location": "Work",
|
|
463
|
+
"URL": "https://www.cdc.gov/"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"STATE": "Vermont",
|
|
467
|
+
"Rate": 40,
|
|
468
|
+
"Location": "Home",
|
|
469
|
+
"URL": "https://www.cdc.gov/"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"STATE": "Virgin Islands",
|
|
473
|
+
"Rate": 55,
|
|
474
|
+
"Location": "School",
|
|
475
|
+
"URL": "https://www.cdc.gov/"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"STATE": "Virginia",
|
|
479
|
+
"Rate": 57,
|
|
480
|
+
"Location": "School",
|
|
481
|
+
"URL": "https://www.cdc.gov/"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"STATE": "Washington",
|
|
485
|
+
"Rate": 62,
|
|
486
|
+
"Location": "Work",
|
|
487
|
+
"URL": "https://www.cdc.gov/"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"STATE": "West Virginia",
|
|
491
|
+
"Rate": 25,
|
|
492
|
+
"Location": "Vehicle",
|
|
493
|
+
"URL": "https://www.cdc.gov/"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"STATE": "Wyoming",
|
|
497
|
+
"Rate": 43,
|
|
498
|
+
"Location": "Vehicle",
|
|
499
|
+
"URL": "https://www.cdc.gov/"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"dataFileName": "valid-data-map.csv",
|
|
503
|
+
"dataFileSourceType": "file",
|
|
504
|
+
"orientation": null,
|
|
505
|
+
"visualizationSubType": null,
|
|
506
|
+
"validated": "4.24.3"
|
|
507
|
+
}
|
package/index.html
CHANGED
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
<style type="text/css">
|
|
7
7
|
body {
|
|
8
8
|
margin: 0;
|
|
9
|
+
border-top: none !important;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.cdc-map-outer-container {
|
|
12
13
|
min-height: 100vh;
|
|
13
14
|
}
|
|
14
|
-
/* .alaska,
|
|
15
|
-
.hawaii {
|
|
16
|
-
display: none;
|
|
17
|
-
} */
|
|
18
15
|
</style>
|
|
16
|
+
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/contrib/libs/bootstrap/latest/css/bootstrap.min.css?_=39423" />
|
|
17
|
+
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/4.0/assets/css/app.min.css?_=39423" />
|
|
19
18
|
</head>
|
|
20
19
|
|
|
21
20
|
<body>
|
|
22
21
|
<!-- DEFAULT EXAMPLES -->
|
|
23
|
-
<div class="react-container" data-config="/examples/
|
|
22
|
+
<!-- <div class="react-container" data-config="/examples/hex-colors.json"></div> -->
|
|
23
|
+
<!-- <div class="react-container" data-config="/examples/private/map.json"></div> -->
|
|
24
24
|
<!-- <div class="react-container" data-config="/examples/private/zika-issue.json"></div> -->
|
|
25
|
-
|
|
25
|
+
<div class="react-container react-container--maps" data-config="/examples/usa-special-class-legend.json">/</div>
|
|
26
26
|
|
|
27
27
|
<!-- <div class="react-container react-container--maps" data-config="/examples/private/tooltip-issue.json"></div> -->
|
|
28
28
|
<!-- <div class="react-container react-container--maps" data-config="/examples/test.json"></div> -->
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<!-- <div class="react-container react-container--maps" data-config="https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/US-County-Level-Map.json"></div> -->
|
|
37
37
|
<!-- <div class="react-container react-container--maps" data-config="/examples/default-geocode.json"></div> -->
|
|
38
38
|
<!-- <div class="react-container react-container--maps" data-config="/examples/default-single-state.json"></div> -->
|
|
39
|
-
|
|
39
|
+
<div class="react-container react-container--maps" data-config="/examples/bubble-us.json"></div>
|
|
40
40
|
<!-- <div class="react-container react-container--maps" data-config="/examples/bubble-world.json"></div> -->
|
|
41
41
|
|
|
42
42
|
<!-- TESTS DATA TABLE SORT-->
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<!-- TP4 EXAMPLES -->
|
|
55
55
|
<div class="react-container react-container--maps" data-config="/examples/example-city-state.json"></div>
|
|
56
56
|
<!-- <div class="react-container react-container--maps" data-config="/examples/example-city-state-no-territories.json"></div> -->
|
|
57
|
-
|
|
57
|
+
<div class="react-container react-container--maps" data-config="/examples/example-world-map.json"></div>
|
|
58
58
|
<!-- <div class="react-container react-container--maps" data-config="/examples/default-hex.json"></div> -->
|
|
59
59
|
|
|
60
60
|
<!-- <div class="react-container" data-config="/examples/example-hex-map-with-filter.json"></div> -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/map",
|
|
3
|
-
"version": "4.24.
|
|
3
|
+
"version": "4.24.5",
|
|
4
4
|
"description": "React component for visualizing tabular data on a map of the United States or the world.",
|
|
5
5
|
"moduleName": "CdcMap",
|
|
6
6
|
"main": "dist/cdcmap",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cdc/core": "^4.24.
|
|
27
|
+
"@cdc/core": "^4.24.5",
|
|
28
28
|
"@emotion/core": "^10.0.28",
|
|
29
29
|
"@emotion/react": "^11.1.5",
|
|
30
30
|
"@hello-pangea/dnd": "^16.2.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "def85aaf4cd9dc1983e80f2900199f35de82af95"
|
|
55
55
|
}
|