feat: Update map page to fetch GeoJSON data from new endpoint

This commit is contained in:
Sean Morley
2024-07-27 12:50:36 -04:00
parent 57eee7bb5d
commit 055290ce3f
2 changed files with 1 additions and 4 deletions

View File

@@ -99,7 +99,7 @@
$: {
if (showGEO && geoJSON.length === 0) {
(async () => {
geoJSON = await fetch(data.props.geoJsonUrl).then((res) => res.json());
geoJSON = await fetch('/api/geojson/').then((res) => res.json());
})();
} else if (!showGEO) {
geoJSON = [];