@cdc/map 4.23.4 → 4.23.6
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 +25668 -29239
- package/examples/custom-map-layers.json +10 -2
- package/examples/example-city-state.json +39 -3
- package/examples/new-cities.json +656 -0
- package/examples/testing-layer-2.json +61 -1
- package/examples/testing-layer.json +1 -5
- package/index.html +2 -2
- package/package.json +3 -3
- package/src/CdcMap.jsx +180 -67
- package/src/components/CountyMap.jsx +15 -12
- package/src/components/DataTable.jsx +190 -223
- package/src/components/EditorPanel.jsx +1270 -1226
- package/src/components/UsaMap.jsx +7 -1
- package/src/data/initial-state.js +11 -6
- package/src/data/supported-cities.csv +165 -0
- package/src/data/supported-geos.js +14 -0
- package/src/hooks/useMapLayers.jsx +11 -75
|
@@ -100,11 +100,19 @@
|
|
|
100
100
|
"layers": [
|
|
101
101
|
{
|
|
102
102
|
"name": "Layer One",
|
|
103
|
-
"url": "./examples/testing-layer.json"
|
|
103
|
+
"url": "./examples/testing-layer.json",
|
|
104
|
+
"namespace": "cove",
|
|
105
|
+
"fill": "blue",
|
|
106
|
+
"stroke": "orange",
|
|
107
|
+
"strokeWidth": "5"
|
|
104
108
|
},
|
|
105
109
|
{
|
|
106
110
|
"name": "Layer Two",
|
|
107
|
-
"url": "./examples/testing-layer.json"
|
|
111
|
+
"url": "./examples/testing-layer-2.json",
|
|
112
|
+
"namespace": "cove",
|
|
113
|
+
"fill": "blue",
|
|
114
|
+
"stroke": "orange",
|
|
115
|
+
"strokeWidth": "5"
|
|
108
116
|
}
|
|
109
117
|
]
|
|
110
118
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"showSidebar": true,
|
|
9
9
|
"showTitle": true,
|
|
10
10
|
"showDownloadButton": true,
|
|
11
|
-
"expandDataTable":
|
|
11
|
+
"expandDataTable": true,
|
|
12
12
|
"backgroundColor": "#f5f5f5",
|
|
13
13
|
"geoBorderColor": "darkGray",
|
|
14
14
|
"territoriesLabel": "Territories",
|
|
@@ -142,13 +142,13 @@
|
|
|
142
142
|
"data": [
|
|
143
143
|
{
|
|
144
144
|
"STATE": "AL",
|
|
145
|
-
"Rate":
|
|
145
|
+
"Rate": 1000,
|
|
146
146
|
"Location": "Home",
|
|
147
147
|
"URL": "https://www.cdc.gov/"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"STATE": "AK",
|
|
151
|
-
"Rate":
|
|
151
|
+
"Rate": 1200,
|
|
152
152
|
"Location": "Vehicle",
|
|
153
153
|
"URL": "https://www.cdc.gov/"
|
|
154
154
|
},
|
|
@@ -506,6 +506,42 @@
|
|
|
506
506
|
"Location": "Vehicle",
|
|
507
507
|
"URL": "https://www.cdc.gov/"
|
|
508
508
|
},
|
|
509
|
+
{
|
|
510
|
+
"STATE": "Grand Rapids, MICHIGAN",
|
|
511
|
+
"Rate": 14,
|
|
512
|
+
"Location": "Vehicle",
|
|
513
|
+
"URL": "https://www.cdc.gov/"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"STATE": "Salem, OReGON",
|
|
517
|
+
"Rate": 14,
|
|
518
|
+
"Location": "Vehicle",
|
|
519
|
+
"URL": "https://www.cdc.gov/"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"STATE": "Round Rock, TEXAS",
|
|
523
|
+
"Rate": 14,
|
|
524
|
+
"Location": "Vehicle",
|
|
525
|
+
"URL": "https://www.cdc.gov/"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"STATE": "PROVO, UT",
|
|
529
|
+
"Rate": 14,
|
|
530
|
+
"Location": "Vehicle",
|
|
531
|
+
"URL": "https://www.cdc.gov/"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"STATE": "SALUDA, VIRGINIA",
|
|
535
|
+
"Rate": 14,
|
|
536
|
+
"Location": "Vehicle",
|
|
537
|
+
"URL": "https://www.cdc.gov/"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"STATE": "ELLENSBURG, WA",
|
|
541
|
+
"Rate": 14,
|
|
542
|
+
"Location": "Vehicle",
|
|
543
|
+
"URL": "https://www.cdc.gov/"
|
|
544
|
+
},
|
|
509
545
|
{
|
|
510
546
|
"STATE": "Atlanta",
|
|
511
547
|
"Rate": 12,
|