Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d5343 commit 7d37d37Copy full SHA for 7d37d37
app/_constants/geosjon-features.js
@@ -0,0 +1,17 @@
1
+import * as topojson from "topojson-client";
2
+import Albers from "../data/topoJSON/albers.topo.json";
3
+
4
+export const AlbersNation = () => {
5
+ const { features } = topojson.feature(Albers, "nation");
6
+ return features;
7
+};
8
9
+export const AlbersStates = () => {
10
+ const { features } = topojson.feature(Albers, "states");
11
12
13
14
+export const AlbersCounties = () => {
15
+ const { features } = topojson.feature(Albers, "counties");
16
17
0 commit comments