Skip to content

Commit

Permalink
Merge pull request #721 from the-hideout/svg-tile-selection
Browse files Browse the repository at this point in the history
SVG/Tile selection
  • Loading branch information
Razzmatazzz authored Nov 9, 2023
2 parents 4cca6a1 + a6e7559 commit 34db5fc
Show file tree
Hide file tree
Showing 18 changed files with 729 additions and 854 deletions.
Binary file removed public/maps/interactive/container_bank-cash-register.png
Binary file not shown.
Binary file removed public/maps/interactive/container_bank-safe.png
Binary file not shown.
Binary file not shown.
Binary file removed public/maps/interactive/container_ground-cache.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed public/maps/interactive/container_shturmans-stash.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions scripts/generate-thumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ const sharp = require('sharp');
const image = sharp(mapsPath+fileName).resize(null, maxHeight).jpeg({mozjpeg: true, quality: 90});
await image.toFile(mapsPath+thumbName);
}
const mapGroups = JSON.parse(await fs.readFile('./src/data/maps.json'));
/*const mapGroups = JSON.parse(await fs.readFile('./src/data/maps.json'));
for (const group of mapGroups) {
for (const map of group.maps) {
if (map.projection !== 'interactive')
continue;
let path = map.mapPath || map.svgPath || `https://assets.tarkov.dev/maps/${group.normalizedName}/{z}/{x}/{y}.png`;
let path = map.tilePath || map.svgPath || `https://assets.tarkov.dev/maps/${group.normalizedName}/{z}/{x}/{y}.png`;
path = path.replace(/{[xyz]}/g, '0');
const thumbName = `${group.normalizedName}_thumb.jpg`;
try {
Expand All @@ -43,6 +43,6 @@ const sharp = require('sharp');
console.log(`Asset for ${thumbName} unavailable`)
}
}
}
}*/
console.timeEnd('Generating thumbnails');
})();
Loading

0 comments on commit 34db5fc

Please sign in to comment.