@cdc/map 4.23.2 → 4.23.4
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 +24661 -24191
- package/examples/custom-map-layers.json +764 -0
- package/examples/default-county.json +169 -155
- package/examples/default-geocode.json +744 -744
- package/examples/default-hex.json +3 -5
- package/examples/example-city-state-no-territories.json +703 -0
- package/examples/example-city-state.json +26 -7
- package/examples/example-city-stateBAD.json +744 -0
- package/examples/gallery/city-state.json +478 -478
- package/examples/testing-layer-2.json +1 -0
- package/examples/testing-layer.json +96 -0
- package/examples/world-geocode-data.json +18 -0
- package/examples/world-geocode.json +108 -0
- package/index.html +35 -29
- package/package.json +6 -3
- package/src/CdcMap.jsx +179 -111
- package/src/components/CityList.jsx +35 -35
- package/src/components/CountyMap.jsx +309 -446
- package/src/components/DataTable.jsx +7 -31
- package/src/components/EditorPanel.jsx +468 -217
- package/src/components/Sidebar.jsx +2 -0
- package/src/components/UsaMap.jsx +34 -23
- package/src/components/WorldMap.jsx +40 -8
- package/src/data/feature-test.json +73 -0
- package/src/data/initial-state.js +10 -3
- package/src/data/supported-geos.js +7 -7
- package/src/hooks/useMapLayers.jsx +243 -0
- package/src/index.jsx +4 -8
- package/src/scss/editor-panel.scss +97 -97
- package/src/scss/filters.scss +0 -2
- package/src/scss/main.scss +25 -26
- package/src/scss/map.scss +12 -0
- package/src/test/CdcMap.test.jsx +19 -0
- package/vite.config.js +3 -3
- package/src/components/Filters.jsx +0 -113
- package/src/hooks/useColorPalette.ts +0 -88
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
"stateName": "Alabama"
|
|
30
30
|
},
|
|
31
31
|
"showDownloadImgButton": false,
|
|
32
|
-
"showDownloadPdfButton": false
|
|
32
|
+
"showDownloadPdfButton": false,
|
|
33
|
+
"territoriesAlwaysShow": false,
|
|
34
|
+
"geoLabelOverride": ""
|
|
33
35
|
},
|
|
34
36
|
"type": "map",
|
|
35
37
|
"color": "yelloworangered",
|
|
@@ -79,20 +81,32 @@
|
|
|
79
81
|
"description": "Legend Text",
|
|
80
82
|
"type": "equalnumber",
|
|
81
83
|
"specialClasses": [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
{
|
|
85
|
+
"key": "Rate",
|
|
86
|
+
"value": "*",
|
|
87
|
+
"label": "*"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "Rate",
|
|
91
|
+
"value": "NA",
|
|
92
|
+
"label": "N/A"
|
|
93
|
+
}
|
|
84
94
|
],
|
|
85
95
|
"unified": false,
|
|
86
96
|
"singleColumn": false,
|
|
87
97
|
"dynamicDescription": false,
|
|
88
98
|
"descriptions": {},
|
|
89
|
-
"singleRow": false
|
|
99
|
+
"singleRow": false,
|
|
100
|
+
"showSpecialClassesLast": false
|
|
90
101
|
},
|
|
91
|
-
"filters": [],
|
|
92
102
|
"dataTable": {
|
|
93
103
|
"title": "Data Table",
|
|
94
104
|
"forceDisplay": true
|
|
95
105
|
},
|
|
106
|
+
"table": {
|
|
107
|
+
"showDownloadUrl": false,
|
|
108
|
+
"showDataTableLink": true
|
|
109
|
+
},
|
|
96
110
|
"tooltips": {
|
|
97
111
|
"appearanceType": "hover",
|
|
98
112
|
"linkLabel": "Learn More",
|
|
@@ -106,7 +120,8 @@
|
|
|
106
120
|
"minBubbleSize": 1,
|
|
107
121
|
"maxBubbleSize": 20,
|
|
108
122
|
"extraBubbleBorder": false,
|
|
109
|
-
"showBubbleZeros": false
|
|
123
|
+
"showBubbleZeros": false,
|
|
124
|
+
"geoCodeCircleSize": 2
|
|
110
125
|
},
|
|
111
126
|
"mapPosition": {
|
|
112
127
|
"coordinates": [
|
|
@@ -115,6 +130,9 @@
|
|
|
115
130
|
],
|
|
116
131
|
"zoom": 1
|
|
117
132
|
},
|
|
133
|
+
"map": {
|
|
134
|
+
"layers": []
|
|
135
|
+
},
|
|
118
136
|
"sharing": {
|
|
119
137
|
"enabled": false,
|
|
120
138
|
"dataHost": "wcms-wp.cdc.gov",
|
|
@@ -740,5 +758,6 @@
|
|
|
740
758
|
"Location": "Vehicle",
|
|
741
759
|
"URL": "https://www.cdc.gov/"
|
|
742
760
|
}
|
|
743
|
-
]
|
|
761
|
+
],
|
|
762
|
+
"filterStyle": "Filter Changes"
|
|
744
763
|
}
|