Fix map viewer file paths: remove legacy latest/ prefix
This commit is contained in:
+10
-10
@@ -935,18 +935,18 @@ async function loadFiles() {
|
|||||||
let osmFile, diffFile, countyFile, diffAddedFile, diffRemovedFile;
|
let osmFile, diffFile, countyFile, diffAddedFile, diffRemovedFile;
|
||||||
|
|
||||||
if (dataType === 'roads') {
|
if (dataType === 'roads') {
|
||||||
osmFile = `latest/${county}/osm-roads.geojson`;
|
osmFile = `${county}/osm-roads.geojson`;
|
||||||
diffFile = `latest/${county}/diff-roads.geojson`;
|
diffFile = `${county}/diff-roads.geojson`;
|
||||||
countyFile = `latest/${county}/county-roads.geojson`;
|
countyFile = `${county}/county-roads.geojson`;
|
||||||
} else if (dataType === 'paths') {
|
} else if (dataType === 'paths') {
|
||||||
osmFile = `latest/${county}/osm-paths.geojson`;
|
osmFile = `${county}/osm-paths.geojson`;
|
||||||
diffFile = `latest/${county}/diff-paths.geojson`;
|
diffFile = `${county}/diff-paths.geojson`;
|
||||||
countyFile = `latest/${county}/county-paths.geojson`;
|
countyFile = `${county}/county-paths.geojson`;
|
||||||
} else if (dataType === 'addresses') {
|
} else if (dataType === 'addresses') {
|
||||||
osmFile = `latest/${county}/osm-addresses.geojson`;
|
osmFile = `${county}/osm-addresses.geojson`;
|
||||||
diffAddedFile = `latest/${county}/addresses-to-add.geojson`;
|
diffAddedFile = `${county}/addresses-to-add.geojson`;
|
||||||
diffRemovedFile = `latest/${county}/addresses-potentially-removed.geojson`;
|
diffRemovedFile = `${county}/addresses-potentially-removed.geojson`;
|
||||||
countyFile = `latest/${county}/addresses.shp_converted.geojson`;
|
countyFile = `${county}/addresses.shp_converted.geojson`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load files from server
|
// Load files from server
|
||||||
|
|||||||
Reference in New Issue
Block a user