Open jungsikjeong opened 9 months ago
I'm having the same issue, here's another one you can use: https://unpkg.com/world-atlas@2.0.2/countries-110m.json
Same Issue I am facing now.
same issue
If you want a more reliable drop-in fix, just copy the json from web archive (https://web.archive.org/web/20230917004247/https://raw.githubusercontent.com/deldersveld/topojson/master/world-countries.json) and host the file yourself.
I couldn't find the JSON from the web archive for the url (https://raw.githubusercontent.com/deldersveld/topojson/master/countries/united-kingdom/uk-counties.json)
Is there any solution?
Is there any solution?
This worked for me:
import React from "react";
import { ComposableMap, Geographies, Geography } from "react-simple-maps";
const geoUrl = "https://unpkg.com/world-atlas@2.0.2/countries-110m.json"; // new url works
export default function MapTest() {
return (
<div className="" style={{ width: "200px" }}>
{" "}
<ComposableMap>
<Geographies geography={geoUrl}>
{({ geographies }) =>
geographies.map((geo) => (
<Geography key={geo.rsmKey} geography={geo} />
))
}
</Geographies>
</ComposableMap>
</div>
);
}
Am I the only one whose map is not rendering right now?
If you go to this link, 404not foun will appear.