DebasishDhal99 commited on
Commit
a617b7a
·
1 Parent(s): f7ba107

Reduce size of countryBorders.json file by half

Browse files

This 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/countryBorders.json')
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));