@cdc/map 4.24.12 → 4.25.2-25
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 +50119 -48822
- package/examples/annotation/index.json +1 -1
- package/examples/custom-map-layers.json +1 -1
- package/examples/default-geocode.json +2 -2
- package/examples/example-city-state.json +1 -1
- package/examples/private/DEV-9989.json +229 -0
- package/examples/private/ardi.json +180 -0
- package/examples/private/colors 2.json +416 -0
- package/examples/private/colors.json +416 -0
- package/examples/private/colors.json.zip +0 -0
- package/examples/private/customColors.json +45348 -0
- package/examples/private/mmr.json +246 -0
- package/examples/private/test.json +1632 -0
- package/index.html +12 -14
- package/package.json +8 -3
- package/src/CdcMap.tsx +126 -396
- package/src/_stories/CdcMap.Filters.stories.tsx +19 -0
- package/src/_stories/CdcMap.Legend.Gradient.stories.tsx +9 -0
- package/src/_stories/CdcMap.stories.tsx +1 -1
- package/src/_stories/GoogleMap.stories.tsx +19 -0
- package/src/_stories/_mock/DEV-10148.json +859 -0
- package/src/_stories/_mock/DEV-9989.json +229 -0
- package/src/_stories/_mock/example-city-state.json +1 -1
- package/src/_stories/_mock/google-map.json +819 -0
- package/src/_stories/_mock/wastewater-map.json +210 -206
- package/src/components/Annotation/Annotation.Draggable.tsx +34 -43
- package/src/components/Annotation/AnnotationDropdown.tsx +4 -4
- package/src/components/CityList.tsx +3 -9
- package/src/components/DataTable.tsx +8 -9
- package/src/components/EditorPanel/components/EditorPanel.tsx +255 -490
- package/src/components/GoogleMap/components/GoogleMap.tsx +67 -0
- package/src/components/GoogleMap/index.tsx +3 -0
- package/src/components/Legend/components/Legend.tsx +40 -30
- package/src/components/Legend/components/LegendItem.Hex.tsx +7 -3
- package/src/components/Legend/components/index.scss +22 -16
- package/src/components/Modal.tsx +6 -5
- package/src/components/NavigationMenu.tsx +4 -3
- package/src/components/UsaMap/components/TerritoriesSection.tsx +66 -0
- package/src/components/UsaMap/components/Territory/Territory.Hexagon.tsx +15 -16
- package/src/components/UsaMap/components/Territory/Territory.Rectangle.tsx +3 -3
- package/src/components/UsaMap/components/UsaMap.County.tsx +1 -1
- package/src/components/UsaMap/components/UsaMap.Region.tsx +12 -8
- package/src/components/UsaMap/components/UsaMap.SingleState.tsx +2 -2
- package/src/components/UsaMap/components/UsaMap.State.tsx +23 -29
- package/src/components/WorldMap/WorldMap.tsx +3 -5
- package/src/context.ts +0 -12
- package/src/data/initial-state.js +2 -2
- package/src/data/supported-geos.js +23 -3
- package/src/helpers/applyColorToLegend.ts +3 -3
- package/src/helpers/closeModal.ts +9 -0
- package/src/helpers/handleMapAriaLabels.ts +38 -0
- package/src/helpers/indexOfIgnoreType.ts +8 -0
- package/src/helpers/navigationHandler.ts +21 -0
- package/src/helpers/toTitleCase.ts +44 -0
- package/src/helpers/validateFipsCodeLength.ts +30 -0
- package/src/hooks/useResizeObserver.ts +42 -0
- package/src/hooks/useTooltip.ts +4 -2
- package/src/index.jsx +1 -0
- package/src/scss/editor-panel.scss +2 -1
- package/src/scss/filters.scss +0 -5
- package/src/scss/main.scss +57 -61
- package/src/scss/map.scss +1 -13
- package/src/types/MapConfig.ts +20 -11
- package/src/types/MapContext.ts +4 -12
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": [],
|
|
3
|
+
"general": {
|
|
4
|
+
"noStateFoundMessage": "Map Unavailable",
|
|
5
|
+
"annotationDropdownText": "Annotations",
|
|
6
|
+
"geoBorderColor": "darkGray",
|
|
7
|
+
"headerColor": "theme-blue",
|
|
8
|
+
"title": "",
|
|
9
|
+
"showTitle": true,
|
|
10
|
+
"showSidebar": true,
|
|
11
|
+
"showDownloadButton": true,
|
|
12
|
+
"showDownloadMediaButton": false,
|
|
13
|
+
"displayAsHex": false,
|
|
14
|
+
"displayStateLabels": false,
|
|
15
|
+
"territoriesLabel": "Territories",
|
|
16
|
+
"territoriesAlwaysShow": false,
|
|
17
|
+
"language": "en",
|
|
18
|
+
"geoType": "us",
|
|
19
|
+
"geoLabelOverride": "",
|
|
20
|
+
"hasRegions": false,
|
|
21
|
+
"fullBorder": false,
|
|
22
|
+
"type": "map",
|
|
23
|
+
"convertFipsCodes": true,
|
|
24
|
+
"palette": {
|
|
25
|
+
"isReversed": false
|
|
26
|
+
},
|
|
27
|
+
"allowMapZoom": false,
|
|
28
|
+
"hideGeoColumnInTooltip": true,
|
|
29
|
+
"hidePrimaryColumnInTooltip": false,
|
|
30
|
+
"statePicked": {
|
|
31
|
+
"fipsCode": "01",
|
|
32
|
+
"stateName": "Alabama"
|
|
33
|
+
},
|
|
34
|
+
"expandDataTable": false,
|
|
35
|
+
"footnotes": "Note: Alabama, Florida, Georgia, Iowa, Mississippi, New Hampshire, and New Jersey did not assess coverage for individual vaccines. Estimates shown are the percentage of kindergartners who received all doses of all vaccines required for school entry."
|
|
36
|
+
},
|
|
37
|
+
"type": "map",
|
|
38
|
+
"color": "pinkpurple",
|
|
39
|
+
"columns": {
|
|
40
|
+
"geo": {
|
|
41
|
+
"name": "geography",
|
|
42
|
+
"label": "Location",
|
|
43
|
+
"tooltip": false,
|
|
44
|
+
"dataTable": true
|
|
45
|
+
},
|
|
46
|
+
"primary": {
|
|
47
|
+
"dataTable": true,
|
|
48
|
+
"tooltip": false,
|
|
49
|
+
"prefix": "",
|
|
50
|
+
"suffix": "",
|
|
51
|
+
"name": "categories",
|
|
52
|
+
"label": "Category",
|
|
53
|
+
"roundToPlace": 0
|
|
54
|
+
},
|
|
55
|
+
"navigate": {
|
|
56
|
+
"name": ""
|
|
57
|
+
},
|
|
58
|
+
"latitude": {
|
|
59
|
+
"name": ""
|
|
60
|
+
},
|
|
61
|
+
"longitude": {
|
|
62
|
+
"name": ""
|
|
63
|
+
},
|
|
64
|
+
"additionalColumn1": {
|
|
65
|
+
"label": "Estimated Percent Vaccinated",
|
|
66
|
+
"dataTable": true,
|
|
67
|
+
"tooltips": false,
|
|
68
|
+
"prefix": "",
|
|
69
|
+
"suffix": "",
|
|
70
|
+
"name": "estimate_pct",
|
|
71
|
+
"tooltip": true
|
|
72
|
+
},
|
|
73
|
+
"additionalColumn2": {
|
|
74
|
+
"label": "School Year",
|
|
75
|
+
"dataTable": true,
|
|
76
|
+
"tooltips": false,
|
|
77
|
+
"prefix": "",
|
|
78
|
+
"suffix": "",
|
|
79
|
+
"name": "school_year",
|
|
80
|
+
"tooltip": true
|
|
81
|
+
},
|
|
82
|
+
"additionalColumn3": {
|
|
83
|
+
"label": "Population Size",
|
|
84
|
+
"dataTable": true,
|
|
85
|
+
"tooltips": false,
|
|
86
|
+
"prefix": "",
|
|
87
|
+
"suffix": "",
|
|
88
|
+
"name": "population_size",
|
|
89
|
+
"useCommas": true,
|
|
90
|
+
"tooltip": false
|
|
91
|
+
},
|
|
92
|
+
"additionalColumn4": {
|
|
93
|
+
"label": "Percent Surveyed",
|
|
94
|
+
"dataTable": true,
|
|
95
|
+
"tooltips": false,
|
|
96
|
+
"prefix": "",
|
|
97
|
+
"suffix": "%",
|
|
98
|
+
"name": "percent_surveyed",
|
|
99
|
+
"tooltip": false
|
|
100
|
+
},
|
|
101
|
+
"additionalColumn5": {
|
|
102
|
+
"label": "Survey Type",
|
|
103
|
+
"dataTable": true,
|
|
104
|
+
"tooltips": false,
|
|
105
|
+
"prefix": "",
|
|
106
|
+
"suffix": "",
|
|
107
|
+
"name": "survey_type",
|
|
108
|
+
"tooltip": false
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"legend": {
|
|
112
|
+
"descriptions": {},
|
|
113
|
+
"specialClasses": [
|
|
114
|
+
{
|
|
115
|
+
"key": "categories",
|
|
116
|
+
"value": "NA",
|
|
117
|
+
"label": "Not available"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"key": "estimate_pct",
|
|
121
|
+
"value": "NA",
|
|
122
|
+
"label": "Not available"
|
|
123
|
+
},
|
|
124
|
+
{}
|
|
125
|
+
],
|
|
126
|
+
"unified": true,
|
|
127
|
+
"singleColumn": false,
|
|
128
|
+
"singleRow": false,
|
|
129
|
+
"verticalSorted": false,
|
|
130
|
+
"showSpecialClassesLast": true,
|
|
131
|
+
"dynamicDescription": false,
|
|
132
|
+
"type": "category",
|
|
133
|
+
"numberOfItems": 3,
|
|
134
|
+
"position": "bottom",
|
|
135
|
+
"title": "Percent Vaccinated",
|
|
136
|
+
"style": "circles",
|
|
137
|
+
"subStyle": "linear blocks",
|
|
138
|
+
"tickRotation": "",
|
|
139
|
+
"singleColumnLegend": false,
|
|
140
|
+
"hideBorder": false,
|
|
141
|
+
"categoryValuesOrder": [
|
|
142
|
+
"Less than 90%",
|
|
143
|
+
"90-94.9%",
|
|
144
|
+
"95%+",
|
|
145
|
+
"NA"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"filters": [
|
|
149
|
+
{
|
|
150
|
+
"order": "desc",
|
|
151
|
+
"label": "",
|
|
152
|
+
"columnName": "school_year",
|
|
153
|
+
"values": [
|
|
154
|
+
"2009-10",
|
|
155
|
+
"2010-11",
|
|
156
|
+
"2011-12",
|
|
157
|
+
"2012-13",
|
|
158
|
+
"2013-14",
|
|
159
|
+
"2014-15",
|
|
160
|
+
"2015-16",
|
|
161
|
+
"2016-17",
|
|
162
|
+
"2017-18",
|
|
163
|
+
"2018-19",
|
|
164
|
+
"2019-20",
|
|
165
|
+
"2020-21",
|
|
166
|
+
"2021-22",
|
|
167
|
+
"2022-23",
|
|
168
|
+
"2023-24"
|
|
169
|
+
],
|
|
170
|
+
"filterStyle": "dropdown"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"table": {
|
|
174
|
+
"wrapColumns": true,
|
|
175
|
+
"label": "Data Table",
|
|
176
|
+
"expanded": false,
|
|
177
|
+
"limitHeight": false,
|
|
178
|
+
"height": "",
|
|
179
|
+
"caption": "",
|
|
180
|
+
"showDownloadUrl": false,
|
|
181
|
+
"showDataTableLink": true,
|
|
182
|
+
"showFullGeoNameInCSV": false,
|
|
183
|
+
"forceDisplay": true,
|
|
184
|
+
"download": true,
|
|
185
|
+
"indexLabel": ""
|
|
186
|
+
},
|
|
187
|
+
"tooltips": {
|
|
188
|
+
"appearanceType": "hover",
|
|
189
|
+
"linkLabel": "Learn More",
|
|
190
|
+
"capitalizeLabels": true,
|
|
191
|
+
"opacity": 90
|
|
192
|
+
},
|
|
193
|
+
"visual": {
|
|
194
|
+
"minBubbleSize": 1,
|
|
195
|
+
"maxBubbleSize": 20,
|
|
196
|
+
"extraBubbleBorder": false,
|
|
197
|
+
"cityStyle": "circle",
|
|
198
|
+
"cityStyleLabel": "",
|
|
199
|
+
"showBubbleZeros": false,
|
|
200
|
+
"additionalCityStyles": [],
|
|
201
|
+
"geoCodeCircleSize": 8
|
|
202
|
+
},
|
|
203
|
+
"mapPosition": {
|
|
204
|
+
"coordinates": [
|
|
205
|
+
0,
|
|
206
|
+
30
|
|
207
|
+
],
|
|
208
|
+
"zoom": 1
|
|
209
|
+
},
|
|
210
|
+
"map": {
|
|
211
|
+
"layers": [],
|
|
212
|
+
"patterns": []
|
|
213
|
+
},
|
|
214
|
+
"hexMap": {
|
|
215
|
+
"type": "",
|
|
216
|
+
"shapeGroups": [
|
|
217
|
+
{
|
|
218
|
+
"legendTitle": "",
|
|
219
|
+
"legendDescription": "",
|
|
220
|
+
"items": [
|
|
221
|
+
{
|
|
222
|
+
"key": "",
|
|
223
|
+
"shape": "Arrow Up",
|
|
224
|
+
"column": "",
|
|
225
|
+
"operator": "=",
|
|
226
|
+
"value": ""
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"filterBehavior": "Filter Change",
|
|
233
|
+
"dataUrl": "https://www.cdc.gov/wcms/vizdata/measles/MeaslesKindergartenVaxcovExemptions.json",
|
|
234
|
+
"dataFileName": "/wcms/vizdata/measles/MeaslesKindergartenVaxcovExemptions.json",
|
|
235
|
+
"dataFileSourceType": "url",
|
|
236
|
+
"version": "4.24.9",
|
|
237
|
+
"customColors": [
|
|
238
|
+
"#EB7723",
|
|
239
|
+
"#EB7723",
|
|
240
|
+
"#F2A46C",
|
|
241
|
+
"#F2A46C",
|
|
242
|
+
"#9BBFDC",
|
|
243
|
+
"#9BBFDC",
|
|
244
|
+
"#9BBFDC"
|
|
245
|
+
]
|
|
246
|
+
}
|