(url)
| 7 | } |
| 8 | |
| 9 | export 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 | |
| 22 | export function getFeatures(geographies, parseGeographies) { |
| 23 | const isTopojson = geographies.type === "Topology" |
no outgoing calls
no test coverage detected
searching dependent graphs…