Skip to content

Commit

Permalink
fix hash positioning on community map
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Jun 3, 2024
1 parent d23c227 commit d81edd7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/routes/communities/map/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,6 @@
}
}
// set view to all communities as default
else if (communities.length) {
try {
map.fitBounds(
// @ts-expect-error
communities.map((community) => leaflet.geoJSON(community.tags.geo_json).getBounds())
);
} catch (error) {
map.setView([0, 0], 3);
errToast(
'Could not set map view to provided coordinates, please try again or contact BTC Map.'
);
console.log(error);
}
}
mapLoading = 100;
communitiesLoaded = true;
Expand Down

0 comments on commit d81edd7

Please sign in to comment.