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;
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user