From 4e2170461937a01428ce2ba7ac09cfd28e7fced6 Mon Sep 17 00:00:00 2001 From: zyphlar Date: Thu, 23 Apr 2026 10:17:24 -0700 Subject: [PATCH] Fix map viewer file paths: remove legacy latest/ prefix --- web/static/map.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/web/static/map.js b/web/static/map.js index 3bfac45..bfd6370 100644 --- a/web/static/map.js +++ b/web/static/map.js @@ -935,18 +935,18 @@ async function loadFiles() { let osmFile, diffFile, countyFile, diffAddedFile, diffRemovedFile; if (dataType === 'roads') { - osmFile = `latest/${county}/osm-roads.geojson`; - diffFile = `latest/${county}/diff-roads.geojson`; - countyFile = `latest/${county}/county-roads.geojson`; + osmFile = `${county}/osm-roads.geojson`; + diffFile = `${county}/diff-roads.geojson`; + countyFile = `${county}/county-roads.geojson`; } else if (dataType === 'paths') { - osmFile = `latest/${county}/osm-paths.geojson`; - diffFile = `latest/${county}/diff-paths.geojson`; - countyFile = `latest/${county}/county-paths.geojson`; + osmFile = `${county}/osm-paths.geojson`; + diffFile = `${county}/diff-paths.geojson`; + countyFile = `${county}/county-paths.geojson`; } else if (dataType === 'addresses') { - osmFile = `latest/${county}/osm-addresses.geojson`; - diffAddedFile = `latest/${county}/addresses-to-add.geojson`; - diffRemovedFile = `latest/${county}/addresses-potentially-removed.geojson`; - countyFile = `latest/${county}/addresses.shp_converted.geojson`; + osmFile = `${county}/osm-addresses.geojson`; + diffAddedFile = `${county}/addresses-to-add.geojson`; + diffRemovedFile = `${county}/addresses-potentially-removed.geojson`; + countyFile = `${county}/addresses.shp_converted.geojson`; } // Load files from server