@cdc/map 4.24.1 → 4.24.2
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 +50477 -45394
- package/examples/test.json +0 -9614
- package/examples/{private/zika-issue.json → zika.json} +47 -51
- package/index.html +8 -3
- package/package.json +3 -3
- package/src/CdcMap.tsx +29 -16
- package/src/components/CityList.jsx +34 -23
- package/src/components/EditorPanel/components/EditorPanel.tsx +3 -4
- package/src/components/EditorPanel/components/HexShapeSettings.tsx +2 -2
- package/src/components/Geo.jsx +4 -2
- package/src/components/Legend/components/LegendItem.Hex.tsx +5 -9
- package/src/components/UsaMap/components/Territory/Territory.Hexagon.tsx +2 -2
- package/src/components/UsaMap/components/UsaMap.SingleState.tsx +0 -1
- package/src/components/UsaMap/components/UsaMap.State.tsx +3 -4
- package/src/components/WorldMap/components/WorldMap.jsx +14 -8
- package/src/components/WorldMap/data/world-topo-guiana-update.json +1 -0
- package/src/components/WorldMap/data/world-topo-old.json +1 -0
- package/{examples/private/new-world.json → src/components/WorldMap/data/world-topo-recent.json} +23137 -22280
- package/src/components/WorldMap/data/world-topo.json +1 -1
- package/src/data/initial-state.js +2 -2
- package/src/data/supported-geos.js +21 -1
- package/src/hooks/useTooltip.ts +4 -4
- package/src/scss/editor-panel.scss +2 -3
- package/src/scss/map.scss +22 -12
- package/examples/private/map-text-wrap.json +0 -574
- package/examples/private/map-world-data.json +0 -1046
- package/examples/world-geocode-data.json +0 -18
- package/examples/world-geocode.json +0 -108
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"Country": "Argentina",
|
|
4
|
-
"Cases": "100",
|
|
5
|
-
"Category": "Has not historically reported monkeypox",
|
|
6
|
-
"AsOf": "11 Jul 2022 5:00 PM EDT",
|
|
7
|
-
"longitude": "-63.6",
|
|
8
|
-
"latitude": "-38.4"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"Country": "New York City",
|
|
12
|
-
"Cases": "10",
|
|
13
|
-
"Category": "Has not historically reported monkeypox",
|
|
14
|
-
"AsOf": "11 Jul 2022 5:00 PM EDT",
|
|
15
|
-
"longitude": "-74.006",
|
|
16
|
-
"latitude": "40.712"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"general": {
|
|
3
|
-
"title": "Default World Map",
|
|
4
|
-
"subtext": "",
|
|
5
|
-
"type": "world-geocode",
|
|
6
|
-
"geoType": "world",
|
|
7
|
-
"headerColor": "theme-blue",
|
|
8
|
-
"geoBorderColor": "darkGray",
|
|
9
|
-
"showSidebar": true,
|
|
10
|
-
"showTitle": true,
|
|
11
|
-
"showDownloadButton": true,
|
|
12
|
-
"expandDataTable": true,
|
|
13
|
-
"equalNumberOptIn": true,
|
|
14
|
-
"showDownloadMediaButton": false,
|
|
15
|
-
"displayAsHex": false,
|
|
16
|
-
"displayStateLabels": false,
|
|
17
|
-
"territoriesLabel": "Territories",
|
|
18
|
-
"language": "en",
|
|
19
|
-
"geoLabelOverride": "",
|
|
20
|
-
"hasRegions": false,
|
|
21
|
-
"fullBorder": false,
|
|
22
|
-
"palette": {
|
|
23
|
-
"isReversed": false
|
|
24
|
-
},
|
|
25
|
-
"allowMapZoom": true,
|
|
26
|
-
"hideGeoColumnInTooltip": false,
|
|
27
|
-
"hidePrimaryColumnInTooltip": false,
|
|
28
|
-
"statePicked": {
|
|
29
|
-
"fipsCode": "01",
|
|
30
|
-
"stateName": "Alabama"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"type": "map",
|
|
34
|
-
"color": "pinkpurple",
|
|
35
|
-
"columns": {
|
|
36
|
-
"geo": {
|
|
37
|
-
"name": "Country",
|
|
38
|
-
"label": "Location",
|
|
39
|
-
"tooltip": false,
|
|
40
|
-
"dataTable": true
|
|
41
|
-
},
|
|
42
|
-
"primary": {
|
|
43
|
-
"name": "Cases",
|
|
44
|
-
"label": "Data Label",
|
|
45
|
-
"prefix": "",
|
|
46
|
-
"suffix": "%",
|
|
47
|
-
"dataTable": true,
|
|
48
|
-
"tooltip": true
|
|
49
|
-
},
|
|
50
|
-
"navigate": {
|
|
51
|
-
"name": "Link",
|
|
52
|
-
"tooltip": false,
|
|
53
|
-
"dataTable": false
|
|
54
|
-
},
|
|
55
|
-
"latitude": {
|
|
56
|
-
"name": "latitude"
|
|
57
|
-
},
|
|
58
|
-
"longitude": {
|
|
59
|
-
"name": "longitude"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"legend": {
|
|
63
|
-
"numberOfItems": 3,
|
|
64
|
-
"position": "side",
|
|
65
|
-
"title": "Legend Title",
|
|
66
|
-
"description": "Legend Text",
|
|
67
|
-
"type": "equalnumber",
|
|
68
|
-
"specialClasses": [],
|
|
69
|
-
"separateZero": true,
|
|
70
|
-
"descriptions": {},
|
|
71
|
-
"unified": false,
|
|
72
|
-
"singleColumn": false,
|
|
73
|
-
"singleRow": false,
|
|
74
|
-
"dynamicDescription": false
|
|
75
|
-
},
|
|
76
|
-
"filters": [],
|
|
77
|
-
"dataTable": {
|
|
78
|
-
"title": "Data Table",
|
|
79
|
-
"forceDisplay": true
|
|
80
|
-
},
|
|
81
|
-
"table": {
|
|
82
|
-
"showDownloadUrl": false
|
|
83
|
-
},
|
|
84
|
-
"tooltips": {
|
|
85
|
-
"appearanceType": "hover",
|
|
86
|
-
"linkLabel": "Learn More",
|
|
87
|
-
"capitalizeLabels": true
|
|
88
|
-
},
|
|
89
|
-
"runtime": {
|
|
90
|
-
"editorErrorMessage": []
|
|
91
|
-
},
|
|
92
|
-
"visual": {
|
|
93
|
-
"minBubbleSize": 1,
|
|
94
|
-
"maxBubbleSize": 20,
|
|
95
|
-
"extraBubbleBorder": false,
|
|
96
|
-
"cityStyle": "circle",
|
|
97
|
-
"geoCodeCircleSize": 8,
|
|
98
|
-
"showBubbleZeros": false
|
|
99
|
-
},
|
|
100
|
-
"mapPosition": {
|
|
101
|
-
"coordinates": [
|
|
102
|
-
0,
|
|
103
|
-
30
|
|
104
|
-
],
|
|
105
|
-
"zoom": 1
|
|
106
|
-
},
|
|
107
|
-
"dataUrl": "http://localhost:8080/examples/world-geocode-data.json"
|
|
108
|
-
}
|