@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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Moving this here for now
|
|
2
|
+
// United States Maps is using iso codes
|
|
3
|
+
// County Maps are not supporting Abbreviations.
|
|
4
|
+
export const stateAbbreviations = {
|
|
5
|
+
Alabama: 'AL',
|
|
6
|
+
Alaska: 'AK',
|
|
7
|
+
Arizona: 'AZ',
|
|
8
|
+
Arkansas: 'AR',
|
|
9
|
+
California: 'CA',
|
|
10
|
+
Colorado: 'CO',
|
|
11
|
+
Connecticut: 'CT',
|
|
12
|
+
Delaware: 'DE',
|
|
13
|
+
Florida: 'FL',
|
|
14
|
+
Georgia: 'GA',
|
|
15
|
+
Hawaii: 'HI',
|
|
16
|
+
Idaho: 'ID',
|
|
17
|
+
Illinois: 'IL',
|
|
18
|
+
Indiana: 'IN',
|
|
19
|
+
Iowa: 'IA',
|
|
20
|
+
Kansas: 'KS',
|
|
21
|
+
Kentucky: 'KY',
|
|
22
|
+
Louisiana: 'LA',
|
|
23
|
+
Maine: 'ME',
|
|
24
|
+
Maryland: 'MD',
|
|
25
|
+
Massachusetts: 'MA',
|
|
26
|
+
Michigan: 'MI',
|
|
27
|
+
Minnesota: 'MN',
|
|
28
|
+
Mississippi: 'MS',
|
|
29
|
+
Missouri: 'MO',
|
|
30
|
+
Montana: 'MT',
|
|
31
|
+
Nebraska: 'NE',
|
|
32
|
+
Nevada: 'NV',
|
|
33
|
+
'New Hampshire': 'NH',
|
|
34
|
+
'New Jersey': 'NJ',
|
|
35
|
+
'New Mexico': 'NM',
|
|
36
|
+
'New York': 'NY',
|
|
37
|
+
'North Carolina': 'NC',
|
|
38
|
+
'North Dakota': 'ND',
|
|
39
|
+
Ohio: 'OH',
|
|
40
|
+
Oklahoma: 'OK',
|
|
41
|
+
Oregon: 'OR',
|
|
42
|
+
Pennsylvania: 'PA',
|
|
43
|
+
'Rhode Island': 'RI',
|
|
44
|
+
'South Carolina': 'SC',
|
|
45
|
+
'South Dakota': 'SD',
|
|
46
|
+
Tennessee: 'TN',
|
|
47
|
+
Texas: 'TX',
|
|
48
|
+
Utah: 'UT',
|
|
49
|
+
Vermont: 'VT',
|
|
50
|
+
Virginia: 'VA',
|
|
51
|
+
Washington: 'WA',
|
|
52
|
+
'West Virginia': 'WV',
|
|
53
|
+
Wisconsin: 'WI',
|
|
54
|
+
Wyoming: 'WY',
|
|
55
|
+
'District of Columbia': 'DC',
|
|
56
|
+
Guam: 'GU',
|
|
57
|
+
'Virgin Islands': 'VI',
|
|
58
|
+
'Puerto Rico': 'PR',
|
|
59
|
+
'American Samoa': 'AS',
|
|
60
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const stateCoordinates = {
|
|
2
|
+
'US-AK': {"Abbreviation":"AK","Name":"Alaska","Latitude":"63.588753","Longitude":"-154.493062"},
|
|
3
|
+
'US-AL': {"Abbreviation":"AL","Name":"Alabama","Latitude":"32.318231","Longitude":"-86.902298"},
|
|
4
|
+
'US-AR': {"Abbreviation":"AR","Name":"Arkansas","Latitude":"35.20105","Longitude":"-91.831833"},
|
|
5
|
+
'US-AZ': {"Abbreviation":"AZ","Name":"Arizona","Latitude":"34.048928","Longitude":"-111.093731"},
|
|
6
|
+
'US-CA': {"Abbreviation":"CA","Name":"California","Latitude":"36.778261","Longitude":"-119.417932"},
|
|
7
|
+
'US-CO': {"Abbreviation":"CO","Name":"Colorado","Latitude":"39.550051","Longitude":"-105.782067"},
|
|
8
|
+
'US-CT': {"Abbreviation":"CT","Name":"Connecticut","Latitude":"41.603221","Longitude":"-73.087749"},
|
|
9
|
+
'US-DC': {"Abbreviation":"DC","Name":"District of Columbia","Latitude":"38.905985","Longitude":"-77.033418"},
|
|
10
|
+
'US-DE': {"Abbreviation":"DE","Name":"Delaware","Latitude":"38.910832","Longitude":"-75.52767"},
|
|
11
|
+
'US-FL': {"Abbreviation":"FL","Name":"Florida","Latitude":"27.664827","Longitude":"-81.515754"},
|
|
12
|
+
'US-GA': {"Abbreviation":"GA","Name":"Georgia","Latitude":"32.157435","Longitude":"-82.907123"},
|
|
13
|
+
'US-HI': {"Abbreviation":"HI","Name":"Hawaii","Latitude":"19.898682","Longitude":"-155.665857"},
|
|
14
|
+
'US-IA': {"Abbreviation":"IA","Name":"Iowa","Latitude":"41.878003","Longitude":"-93.097702"},
|
|
15
|
+
'US-ID': {"Abbreviation":"ID","Name":"Idaho","Latitude":"44.068202","Longitude":"-114.742041"},
|
|
16
|
+
'US-IL': {"Abbreviation":"IL","Name":"Illinois","Latitude":"40.633125","Longitude":"-89.398528"},
|
|
17
|
+
'US-IN': {"Abbreviation":"IN","Name":"Indiana","Latitude":"40.551217","Longitude":"-85.602364"},
|
|
18
|
+
'US-KS': {"Abbreviation":"KS","Name":"Kansas","Latitude":"39.011902","Longitude":"-98.484246"},
|
|
19
|
+
'US-KY': {"Abbreviation":"KY","Name":"Kentucky","Latitude":"37.839333","Longitude":"-84.270018"},
|
|
20
|
+
'US-LA': {"Abbreviation":"LA","Name":"Louisiana","Latitude":"31.244823","Longitude":"-92.145024"},
|
|
21
|
+
'US-MA': {"Abbreviation":"MA","Name":"Massachusetts","Latitude":"42.407211","Longitude":"-71.382437"},
|
|
22
|
+
'US-MD': {"Abbreviation":"MD","Name":"Maryland","Latitude":"39.045755","Longitude":"-76.641271"},
|
|
23
|
+
'US-ME': {"Abbreviation":"ME","Name":"Maine","Latitude":"45.253783","Longitude":"-69.445469"},
|
|
24
|
+
'US-MI': {"Abbreviation":"MI","Name":"Michigan","Latitude":"44.314844","Longitude":"-85.602364"},
|
|
25
|
+
'US-MN': {"Abbreviation":"MN","Name":"Minnesota","Latitude":"46.729553","Longitude":"-94.6859"},
|
|
26
|
+
'US-MO': {"Abbreviation":"MO","Name":"Missouri","Latitude":"37.964253","Longitude":"-91.831833"},
|
|
27
|
+
'US-MS': {"Abbreviation":"MS","Name":"Mississippi","Latitude":"32.354668","Longitude":"-89.398528"},
|
|
28
|
+
'US-MT': {"Abbreviation":"MT","Name":"Montana","Latitude":"46.879682","Longitude":"-110.362566"},
|
|
29
|
+
'US-NC': {"Abbreviation":"NC","Name":"North Carolina","Latitude":"35.759573","Longitude":"-79.0193"},
|
|
30
|
+
'US-ND': {"Abbreviation":"ND","Name":"North Dakota","Latitude":"47.551493","Longitude":"-101.002012"},
|
|
31
|
+
'US-NE': {"Abbreviation":"NE","Name":"Nebraska","Latitude":"41.492537","Longitude":"-99.901813"},
|
|
32
|
+
'US-NH': {"Abbreviation":"NH","Name":"New Hampshire","Latitude":"43.193852","Longitude":"-71.572395"},
|
|
33
|
+
'US-NJ': {"Abbreviation":"NJ","Name":"New Jersey","Latitude":"40.058324","Longitude":"-74.405661"},
|
|
34
|
+
'US-NM': {"Abbreviation":"NM","Name":"New Mexico","Latitude":"34.97273","Longitude":"-105.032363"},
|
|
35
|
+
'US-NV': {"Abbreviation":"NV","Name":"Nevada","Latitude":"38.80261","Longitude":"-116.419389"},
|
|
36
|
+
'US-NY': {"Abbreviation":"NY","Name":"New York","Latitude":"43.299428","Longitude":"-74.217933"},
|
|
37
|
+
'US-OH': {"Abbreviation":"OH","Name":"Ohio","Latitude":"40.417287","Longitude":"-82.907123"},
|
|
38
|
+
'US-OK': {"Abbreviation":"OK","Name":"Oklahoma","Latitude":"35.007752","Longitude":"-97.092877"},
|
|
39
|
+
'US-OR': {"Abbreviation":"OR","Name":"Oregon","Latitude":"43.804133","Longitude":"-120.554201"},
|
|
40
|
+
'US-PA': {"Abbreviation":"PA","Name":"Pennsylvania","Latitude":"41.203322","Longitude":"-77.194525"},
|
|
41
|
+
'US-PR': {"Abbreviation":"PR","Name":"Puerto Rico","Latitude":"18.220833","Longitude":"-66.590149"},
|
|
42
|
+
'US-RI': {"Abbreviation":"RI","Name":"Rhode Island","Latitude":"41.580095","Longitude":"-71.477429"},
|
|
43
|
+
'US-SC': {"Abbreviation":"SC","Name":"South Carolina","Latitude":"33.836081","Longitude":"-81.163725"},
|
|
44
|
+
'US-SD': {"Abbreviation":"SD","Name":"South Dakota","Latitude":"43.969515","Longitude":"-99.901813"},
|
|
45
|
+
'US-TN': {"Abbreviation":"TN","Name":"Tennessee","Latitude":"35.517491","Longitude":"-86.580447"},
|
|
46
|
+
'US-TX': {"Abbreviation":"TX","Name":"Texas","Latitude":"31.968599","Longitude":"-99.901813"},
|
|
47
|
+
'US-UT': {"Abbreviation":"UT","Name":"Utah","Latitude":"39.32098","Longitude":"-111.093731"},
|
|
48
|
+
'US-VA': {"Abbreviation":"VA","Name":"Virginia","Latitude":"37.431573","Longitude":"-78.656894"},
|
|
49
|
+
'US-VT': {"Abbreviation":"VT","Name":"Vermont","Latitude":"44.558803","Longitude":"-72.577841"},
|
|
50
|
+
'US-WA': {"Abbreviation":"WA","Name":"Washington","Latitude":"47.751074","Longitude":"-120.740139"},
|
|
51
|
+
'US-WI': {"Abbreviation":"WI","Name":"Wisconsin","Latitude":"43.78444","Longitude":"-88.787868"},
|
|
52
|
+
'US-WV': {"Abbreviation":"WV","Name":"West Virginia","Latitude":"38.597626","Longitude":"-80.454903"},
|
|
53
|
+
'US-WY': {"Abbreviation":"WY","Name":"Wyoming","Latitude":"43.075968","Longitude":"-107.290284"}
|
|
54
|
+
}
|
|
55
|
+
export default stateCoordinates;
|