diff --git a/packages/cogify/src/cogify/cli/cli.cover.ts b/packages/cogify/src/cogify/cli/cli.cover.ts index e28be439e..558e0a950 100644 --- a/packages/cogify/src/cogify/cli/cli.cover.ts +++ b/packages/cogify/src/cogify/cli/cli.cover.ts @@ -84,8 +84,8 @@ export const BasemapsCogifyCoverCommand = command({ throw new Error(`No collection.json found with imagery: ${im.url.href}`); } -const slug = im.collection?.['linz:slug'] -if (slug != null) im.name = slug + const slug = im.collection?.['linz:slug']; + if (slug != null) im.name = slug as string; const tms = SupportedTileMatrix.find((f) => f.identifier.toLowerCase() === args.tileMatrix.toLowerCase()); if (tms == null) throw new Error('--tile-matrix: ' + args.tileMatrix + ' not found');