@cdc/map 2.6.4 → 4.22.10

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.
Files changed (48) hide show
  1. package/LICENSE +201 -0
  2. package/dist/cdcmap.js +22 -16
  3. package/examples/default-county.json +64 -12
  4. package/examples/default-geocode.json +746 -0
  5. package/examples/default-hex.json +3 -1
  6. package/examples/example-city-state.json +10 -1
  7. package/examples/gallery/categorical-qualitative.json +797 -0
  8. package/examples/gallery/categorical-scale-based.json +739 -0
  9. package/examples/gallery/city-state.json +479 -0
  10. package/examples/gallery/county.json +22731 -0
  11. package/examples/gallery/equal-interval.json +1027 -0
  12. package/examples/gallery/equal-number.json +1027 -0
  13. package/examples/gallery/filterable.json +909 -0
  14. package/examples/gallery/hex-filtered.json +420 -0
  15. package/examples/gallery/hex.json +413 -0
  16. package/examples/gallery/single-state.json +21402 -0
  17. package/examples/gallery/world.json +1592 -0
  18. package/examples/private/city-state.json +428 -0
  19. package/examples/private/cty-issue.json +42768 -0
  20. package/examples/private/default-usa.json +460 -0
  21. package/examples/private/legend-issue.json +1 -0
  22. package/examples/private/map-rounding-error.json +42759 -0
  23. package/examples/private/monkeypox.json +376 -0
  24. package/examples/private/valid-data-map.csv +59 -0
  25. package/examples/private/wcmsrd-14492-data.json +292 -0
  26. package/examples/private/wcmsrd-14492.json +114 -0
  27. package/package.json +3 -3
  28. package/src/CdcMap.js +1370 -1322
  29. package/src/components/BubbleList.js +9 -5
  30. package/src/components/CityList.js +63 -19
  31. package/src/components/CountyMap.js +101 -42
  32. package/src/components/DataTable.js +18 -15
  33. package/src/components/EditorPanel.js +319 -149
  34. package/src/components/Modal.js +2 -1
  35. package/src/components/NavigationMenu.js +4 -3
  36. package/src/components/Sidebar.js +14 -19
  37. package/src/components/SingleStateMap.js +177 -248
  38. package/src/components/UsaMap.js +83 -30
  39. package/src/components/UsaRegionMap.js +3 -2
  40. package/src/components/WorldMap.js +8 -2
  41. package/src/data/{dfc-map.json → county-map.json} +0 -0
  42. package/src/data/initial-state.js +5 -2
  43. package/src/data/supported-geos.js +10 -0
  44. package/src/index.html +4 -8
  45. package/src/scss/editor-panel.scss +2 -2
  46. package/src/scss/main.scss +1 -6
  47. package/src/scss/map.scss +18 -0
  48. package/src/scss/sidebar.scss +2 -1
@@ -1,5 +1,4 @@
1
1
  {
2
- "type": "map",
3
2
  "general": {
4
3
  "title": "Default County Map",
5
4
  "subtext": "",
@@ -11,8 +10,26 @@
11
10
  "showTitle": true,
12
11
  "geoBorderColor": "darkGray",
13
12
  "showDownloadButton": true,
14
- "expandDataTable": false
13
+ "expandDataTable": false,
14
+ "showDownloadMediaButton": false,
15
+ "displayAsHex": false,
16
+ "displayStateLabels": false,
17
+ "language": "en",
18
+ "hasRegions": false,
19
+ "fullBorder": false,
20
+ "palette": {
21
+ "isReversed": false
22
+ },
23
+ "allowMapZoom": true,
24
+ "hideGeoColumnInTooltip": false,
25
+ "hidePrimaryColumnInTooltip": false,
26
+ "statePicked": {
27
+ "fipsCode": "01",
28
+ "stateName": "Alabama"
29
+ },
30
+ "equalNumberOptIn": true
15
31
  },
32
+ "type": "map",
16
33
  "color": "pinkpurple",
17
34
  "columns": {
18
35
  "geo": {
@@ -41,65 +58,100 @@
41
58
  "title": "Legend Title",
42
59
  "description": "Legend Text",
43
60
  "type": "equalnumber",
44
- "specialClasses": ["N/A"]
61
+ "specialClasses": [
62
+ {
63
+ "key": "Insured Rate",
64
+ "value": "18",
65
+ "label": "18"
66
+ }
67
+ ],
68
+ "descriptions": {},
69
+ "unified": false,
70
+ "singleColumn": false,
71
+ "dynamicDescription": false
45
72
  },
46
73
  "filters": [],
74
+ "dataTable": {
75
+ "title": "Data Table",
76
+ "forceDisplay": true
77
+ },
78
+ "tooltips": {
79
+ "appearanceType": "hover",
80
+ "linkLabel": "Learn More",
81
+ "capitalizeLabels": true
82
+ },
83
+ "runtime": {
84
+ "editorErrorMessage": []
85
+ },
86
+ "visual": {
87
+ "minBubbleSize": 1,
88
+ "maxBubbleSize": 20,
89
+ "extraBubbleBorder": false,
90
+ "cityStyle": "circle"
91
+ },
92
+ "mapPosition": {
93
+ "coordinates": [
94
+ 0,
95
+ 30
96
+ ],
97
+ "zoom": 1
98
+ },
47
99
  "data": [
48
100
  {
49
- "Insured Rate": "8",
101
+ "Insured Rate": 8,
50
102
  "Coverage Status": "Insured",
51
103
  "FIPS Codes": "06071",
52
104
  "Year (Good filter option)": "2010",
53
105
  "link": ""
54
106
  },
55
107
  {
56
- "Insured Rate": "25",
108
+ "Insured Rate": 0,
57
109
  "Coverage Status": "Insured",
58
110
  "FIPS Codes": "55005",
59
111
  "Year (Good filter option)": "2010",
60
112
  "link": "https://cdc.gov"
61
113
  },
62
114
  {
63
- "Insured Rate": "25",
115
+ "Insured Rate": 25,
64
116
  "Coverage Status": "Insured",
65
117
  "FIPS Codes": "12103",
66
118
  "Year (Good filter option)": "2010",
67
119
  "link": ""
68
120
  },
69
121
  {
70
- "Insured Rate": "25",
122
+ "Insured Rate": 25,
71
123
  "Coverage Status": "Insured",
72
124
  "FIPS Codes": "32005",
73
125
  "Year (Good filter option)": "2010",
74
126
  "link": ""
75
127
  },
76
128
  {
77
- "Insured Rate": "18",
129
+ "Insured Rate": 18,
78
130
  "Coverage Status": "Insured",
79
131
  "FIPS Codes": "06075",
80
132
  "Year (Good filter option)": "2010",
81
133
  "link": ""
82
134
  },
83
135
  {
84
- "Insured Rate": "3",
136
+ "Insured Rate": 3,
85
137
  "Coverage Status": "Insured",
86
138
  "FIPS Codes": "06027",
87
139
  "Year (Good filter option)": "2010",
88
140
  "link": ""
89
141
  },
90
142
  {
91
- "Insured Rate": "25",
143
+ "Insured Rate": 25,
92
144
  "Coverage Status": "Insured",
93
145
  "FIPS Codes": "06029",
94
146
  "Year (Good filter option)": "2010",
95
147
  "link": ""
96
148
  },
97
149
  {
98
- "Insured Rate": "60",
150
+ "Insured Rate": 60,
99
151
  "Coverage Status": "Insured",
100
152
  "FIPS Codes": "06065",
101
153
  "Year (Good filter option)": "2010",
102
154
  "link": ""
103
155
  }
104
156
  ]
105
- }
157
+ }