Skip to content

Commit

Permalink
fix(cli): Fix the output url to include the -year at end, and add deb…
Browse files Browse the repository at this point in the history
…ug into url. (#2467)

* Fix the output url to include the -year at end.

* Add debug into url.
  • Loading branch information
Wentao-Kuang authored Aug 24, 2022
1 parent a2447e9 commit 8481e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/cli/config/action.imagery.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class CommandImageryConfig extends CommandLineAction {
const outputPath = fsa.join(path, `basemaps-config-${configJson.hash}.json.gz`);
await fsa.writeJson(outputPath, configJson);
const configPath = base58.encode(Buffer.from(outputPath));
const url = `https://basemaps.linz.govt.nz/?config=${configPath}&i=${name}&tileMatrix=NZTM2000Quad${location}`;
const url = `https://basemaps.linz.govt.nz/?config=${configPath}&i=${imagery.name}&tileMatrix=NZTM2000Quad&debug${location}`;
logger.info({ path: output, url }, 'ImageryConfig:Done');
if (output != null) await fsa.write(output, url);
} else {
Expand Down

0 comments on commit 8481e8d

Please sign in to comment.