Skip to content

Commit e79e440

Browse files
authored
fix(cogify): include collection and parent links in item.json (#2778)
1 parent 78a019a commit e79e440

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cogify/src/tile.cover.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ export async function createTileCover(ctx: TileCoverContext): Promise<TileCoverR
106106
type: feature.geometry.type,
107107
coordinates: feature.geometry.coordinates,
108108
} as any, // FIXME
109-
links: [{ href: `./${tileId}.json`, rel: 'self' }],
109+
links: [
110+
{ href: `./${tileId}.json`, rel: 'self' },
111+
{ href: './collection.json', rel: 'collection' },
112+
{ href: './collection.json', rel: 'parent' },
113+
],
110114
properties: {
111115
'proj:epsg': ctx.tileMatrix.projection.code,
112116
'linz_basemaps:options': {

0 commit comments

Comments
 (0)