@cdc/map 2.6.0 → 2.6.3
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/convert-topojson.js +70 -0
- package/dist/cdcmap.js +190 -0
- package/examples/default-county.json +105 -0
- package/examples/default-single-state.json +109 -0
- package/examples/default-usa.json +968 -0
- package/examples/default-world.json +1495 -0
- package/examples/example-city-state.json +474 -0
- package/examples/example-world-map.json +1596 -0
- package/examples/gender-rate-map.json +1 -0
- package/package.json +50 -50
- package/src/CdcMap.js +1384 -0
- package/src/components/CityList.js +93 -0
- package/src/components/CountyMap.js +556 -0
- package/src/components/DataTable.js +357 -0
- package/src/components/EditorPanel.js +2111 -0
- package/src/components/Geo.js +21 -0
- package/src/components/Modal.js +31 -0
- package/src/components/NavigationMenu.js +66 -0
- package/src/components/Sidebar.js +167 -0
- package/src/components/SingleStateMap.js +326 -0
- package/src/components/UsaMap.js +342 -0
- package/src/components/WorldMap.js +175 -0
- package/src/components/ZoomableGroup.js +47 -0
- package/src/data/abbreviations.js +57 -0
- package/src/data/color-palettes.js +200 -0
- package/src/data/county-map-halfquality.json +58453 -0
- package/src/data/county-map-quarterquality.json +1 -0
- package/src/data/county-topo.json +1 -0
- package/src/data/dfc-map.json +1 -0
- package/src/data/initial-state.js +60 -0
- package/src/data/newtest.json +1 -0
- package/src/data/state-abbreviations.js +60 -0
- package/src/data/supported-geos.js +3775 -0
- package/src/data/test.json +1 -0
- package/src/data/us-hex-topo.json +1 -0
- package/src/data/us-topo.json +1 -0
- package/src/data/world-topo.json +1 -0
- package/src/hooks/useActiveElement.js +19 -0
- package/src/hooks/useZoomPan.js +110 -0
- package/src/images/active-checkmark.svg +1 -0
- package/src/images/asc.svg +1 -0
- package/src/images/close.svg +1 -0
- package/src/images/desc.svg +1 -0
- package/src/images/external-link.svg +1 -0
- package/src/images/icon-download-img.svg +1 -0
- package/src/images/icon-download-pdf.svg +1 -0
- package/src/images/inactive-checkmark.svg +1 -0
- package/src/images/map-folded.svg +1 -0
- package/src/index.html +29 -0
- package/src/index.js +20 -0
- package/src/scss/btn.scss +69 -0
- package/src/scss/datatable.scss +7 -0
- package/src/scss/editor-panel.scss +654 -0
- package/src/scss/main.scss +224 -0
- package/src/scss/map.scss +188 -0
- package/src/scss/sidebar.scss +146 -0
- package/src/scss/tooltips.scss +30 -0
- package/src/scss/variables.scss +1 -0
- package/uploads/upload-example-city-state.json +392 -0
- package/uploads/upload-example-world-data.json +1490 -0
- package/LICENSE +0 -201
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
general: {
|
|
3
|
+
geoBorderColor: 'darkGray',
|
|
4
|
+
headerColor: 'theme-blue',
|
|
5
|
+
showTitle: true,
|
|
6
|
+
showSidebar: true,
|
|
7
|
+
showDownloadButton: true,
|
|
8
|
+
showDownloadMediaButton: false,
|
|
9
|
+
displayAsHex: false,
|
|
10
|
+
displayStateLabels: false,
|
|
11
|
+
territoriesLabel: 'Territories',
|
|
12
|
+
language: 'en',
|
|
13
|
+
geoType: 'single-state',
|
|
14
|
+
hasRegions: false,
|
|
15
|
+
expandDataTable: true,
|
|
16
|
+
fullBorder: false,
|
|
17
|
+
type: 'data'
|
|
18
|
+
},
|
|
19
|
+
type: "map",
|
|
20
|
+
color: 'pinkpurple',
|
|
21
|
+
columns: {
|
|
22
|
+
geo: {
|
|
23
|
+
name: 'FIPS Codes',
|
|
24
|
+
label: 'Location',
|
|
25
|
+
tooltip: false,
|
|
26
|
+
dataTable: true,
|
|
27
|
+
},
|
|
28
|
+
primary: {
|
|
29
|
+
dataTable: true,
|
|
30
|
+
tooltip: true,
|
|
31
|
+
prefix: '',
|
|
32
|
+
suffix: '',
|
|
33
|
+
name: '',
|
|
34
|
+
label: ''
|
|
35
|
+
},
|
|
36
|
+
navigate: {
|
|
37
|
+
name: ''
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
legend: {
|
|
41
|
+
descriptions: {},
|
|
42
|
+
specialClasses: [],
|
|
43
|
+
unified: false,
|
|
44
|
+
singleColumn: false,
|
|
45
|
+
dynamicDescription: false,
|
|
46
|
+
type: "equalnumber",
|
|
47
|
+
numberOfItems: 3,
|
|
48
|
+
position: "side",
|
|
49
|
+
title: "Legend",
|
|
50
|
+
},
|
|
51
|
+
filters: [],
|
|
52
|
+
dataTable: {
|
|
53
|
+
title: 'Data Table'
|
|
54
|
+
},
|
|
55
|
+
tooltips: {
|
|
56
|
+
appearanceType: 'hover',
|
|
57
|
+
linkLabel: 'Learn More',
|
|
58
|
+
capitalizeLabels: true
|
|
59
|
+
}
|
|
60
|
+
};
|