Skip to content

Commit

Permalink
mbTiles & Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
docuracy committed Dec 29, 2024
1 parent a45d910 commit 2b41d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tileserver/repository/reconfiguration/merge-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const scanDirectory = async (dir, configData, isRoot = true) => {
promises.push(scanDirectory(filePath, configData, false));
// } else if (file.endsWith('.mbtiles') && !isRoot) {
} else if (file.endsWith('.mbtiles')) {
const key = `${isRoot ? '' : path.basename(dir)}-${path.basename(file, '.mbtiles')}`;
const key = `${isRoot ? '' : `${path.basename(dir)}-`}${path.basename(file, '.mbtiles')}`;
if (!configData[key]) {
console.log(`Adding tileset missing from config.json: ${file} from ${dir}`);
// Collect the promise for each .mbtiles file
Expand Down

0 comments on commit 2b41d5c

Please sign in to comment.