Skip to content

Commit

Permalink
Update GEOResourceManifest.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Nov 19, 2024
1 parent 8d9cc02 commit 6820beb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/class/GEOResourceManifest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default class GEOResourceManifest {
//caches.XX.tileSet.forEach(tile => tileNames.push(tile.style));
//caches.CN.tileSet.forEach(tile => tileNames.push(tile.style));
//tileNames = [...new Set(tileNames)];
console.log(JSON.stringify(caches?.XX?.tileSet, null, 2));
// 填补空缺图源
switch (countryCode) {
case "CN":
Expand All @@ -73,8 +74,6 @@ export default class GEOResourceManifest {
});
break;
};
console.log(JSON.stringify(caches?.XX?.tileSet?.find(i => (i.style === "MUNIN_METADATA" && i.dataSet === 0)), null, 2));
console.log(JSON.stringify(caches?.XX?.tileSet?.find(i => (i.style === "MUNIN_METADATA" && i.dataSet === 1)), null, 2));
// 按需更改图源
tileSet = tileSet.map((tile, index) => {
switch (tile.style) {
Expand Down

0 comments on commit 6820beb

Please sign in to comment.