@cdc/map 2.6.2 → 2.6.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 +37 -29
- package/examples/bubble-us.json +363 -0
- package/examples/bubble-world.json +427 -0
- package/examples/default-county.json +105 -0
- package/examples/default-hex.json +475 -0
- package/examples/default-single-state.json +109 -0
- package/examples/default-usa-regions.json +118 -0
- package/examples/default-usa.json +744 -603
- package/examples/default-world-data.json +1450 -0
- package/examples/default-world.json +5 -3
- package/examples/example-city-state.json +510 -0
- package/examples/example-world-map.json +1596 -0
- package/examples/gender-rate-map.json +1 -0
- package/examples/private/atsdr.json +439 -0
- package/examples/private/atsdr_new.json +436 -0
- package/examples/private/bubble.json +285 -0
- package/examples/private/default-world-data.json +1444 -0
- package/examples/private/default.json +968 -0
- package/examples/private/map.csv +60 -0
- package/examples/private/mdx.json +210 -0
- package/examples/private/regions.json +52 -0
- package/examples/private/wcmsrd-13881-data.json +2858 -0
- package/examples/private/wcmsrd-13881.json +5823 -0
- package/examples/private/wcmsrd-test.json +268 -0
- package/examples/private/world.json +1580 -0
- package/examples/private/worldmap.json +1490 -0
- package/package.json +11 -7
- package/src/CdcMap.js +726 -202
- package/src/components/BubbleList.js +240 -0
- package/src/components/CityList.js +22 -3
- package/src/components/CountyMap.js +557 -0
- package/src/components/DataTable.js +85 -24
- package/src/components/EditorPanel.js +2455 -1204
- package/src/components/Geo.js +1 -1
- package/src/components/Sidebar.js +5 -5
- package/src/components/SingleStateMap.js +326 -0
- package/src/components/UsaMap.js +41 -9
- package/src/components/UsaRegionMap.js +319 -0
- package/src/components/WorldMap.js +112 -35
- package/src/data/abbreviations.js +57 -0
- package/src/data/country-coordinates.js +250 -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 +21 -4
- package/src/data/newtest.json +1 -0
- package/src/data/state-abbreviations.js +60 -0
- package/src/data/state-coordinates.js +55 -0
- package/src/data/supported-geos.js +3592 -163
- package/src/data/test.json +1 -0
- package/src/data/us-regions-topo-2.json +360525 -0
- package/src/data/us-regions-topo.json +37894 -0
- package/src/hooks/useActiveElement.js +19 -0
- package/src/hooks/useColorPalette.ts +96 -0
- package/src/index.html +35 -20
- package/src/index.js +8 -4
- package/src/scss/datatable.scss +2 -1
- package/src/scss/editor-panel.scss +76 -55
- package/src/scss/main.scss +10 -1
- package/src/scss/map.scss +257 -121
- package/src/scss/sidebar.scss +0 -1
- package/uploads/upload-example-city-state.json +392 -0
- package/uploads/upload-example-world-data.json +1490 -0
- package/LICENSE +0 -201
- package/src/data/color-palettes.js +0 -191
- package/src/images/map-folded.svg +0 -1
|
@@ -10,17 +10,24 @@ export default {
|
|
|
10
10
|
displayStateLabels: false,
|
|
11
11
|
territoriesLabel: 'Territories',
|
|
12
12
|
language: 'en',
|
|
13
|
-
geoType: '
|
|
13
|
+
geoType: 'single-state',
|
|
14
14
|
hasRegions: false,
|
|
15
15
|
expandDataTable: true,
|
|
16
16
|
fullBorder: false,
|
|
17
|
-
type: 'data'
|
|
17
|
+
type: 'data',
|
|
18
|
+
palette:{
|
|
19
|
+
isReversed:false
|
|
20
|
+
},
|
|
21
|
+
allowMapZoom: true,
|
|
22
|
+
hideGeoColumnInTooltip: false,
|
|
23
|
+
hidePrimaryColumnInTooltip: false
|
|
18
24
|
},
|
|
25
|
+
|
|
19
26
|
type: "map",
|
|
20
27
|
color: 'pinkpurple',
|
|
21
28
|
columns: {
|
|
22
29
|
geo: {
|
|
23
|
-
name: '',
|
|
30
|
+
name: 'FIPS Codes',
|
|
24
31
|
label: 'Location',
|
|
25
32
|
tooltip: false,
|
|
26
33
|
dataTable: true,
|
|
@@ -56,5 +63,15 @@ export default {
|
|
|
56
63
|
appearanceType: 'hover',
|
|
57
64
|
linkLabel: 'Learn More',
|
|
58
65
|
capitalizeLabels: true
|
|
59
|
-
}
|
|
66
|
+
},
|
|
67
|
+
runtime: {
|
|
68
|
+
editorErrorMessage: []
|
|
69
|
+
},
|
|
70
|
+
visual: {
|
|
71
|
+
minBubbleSize: 1,
|
|
72
|
+
maxBubbleSize: 20,
|
|
73
|
+
extraBubbleBorder: false
|
|
74
|
+
},
|
|
75
|
+
mapPosition:
|
|
76
|
+
{ coordinates: [0, 30], zoom: 1 }
|
|
60
77
|
};
|