MCPcopy
hub / github.com/zcreativelabs/react-simple-maps / fetchGeographies

Function fetchGeographies

src/utils.js:9–20  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

7}
8
9export function fetchGeographies(url) {
10 return fetch(url)
11 .then((res) => {
12 if (!res.ok) {
13 throw Error(res.statusText)
14 }
15 return res.json()
16 })
17 .catch((error) => {
18 console.log("There was a problem when fetching the data: ", error)
19 })
20}
21
22export function getFeatures(geographies, parseGeographies) {
23 const isTopojson = geographies.type === "Topology"

Callers 1

useGeographiesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…