Spaces:
Runtime error
Runtime error
Commit
·
a617b7a
1
Parent(s):
f7ba107
Reduce size of countryBorders.json file by half
Browse filesThis makes it lesser than 10MB, can be pushed into huggingface without issue. [I hope so lol]
frontend/public/data/.gitattributes
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
countryBorders.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
frontend/public/data/countryBordersCondensed.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/src/components/Map.js
CHANGED
|
@@ -311,7 +311,7 @@ const Map = ( { onMapClick, searchQuery, contentType, setSearchQuery, setSubmitt
|
|
| 311 |
|
| 312 |
useEffect(() => {
|
| 313 |
if (!countryBorders) {
|
| 314 |
-
fetch('/data/
|
| 315 |
.then(res => res.json())
|
| 316 |
.then(data => setCountryBorders(data))
|
| 317 |
.catch(err => console.error("Failed to load country borders:", err));
|
|
|
|
| 311 |
|
| 312 |
useEffect(() => {
|
| 313 |
if (!countryBorders) {
|
| 314 |
+
fetch('/data/countryBordersCondensed.json')
|
| 315 |
.then(res => res.json())
|
| 316 |
.then(data => setCountryBorders(data))
|
| 317 |
.catch(err => console.error("Failed to load country borders:", err));
|