Skip to content

Commit

Permalink
fix(cogify): include collection and parent links in item.json (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha authored May 7, 2023
1 parent 78a019a commit e79e440
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cogify/src/tile.cover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ export async function createTileCover(ctx: TileCoverContext): Promise<TileCoverR
type: feature.geometry.type,
coordinates: feature.geometry.coordinates,
} as any, // FIXME
links: [{ href: `./${tileId}.json`, rel: 'self' }],
links: [
{ href: `./${tileId}.json`, rel: 'self' },
{ href: './collection.json', rel: 'collection' },
{ href: './collection.json', rel: 'parent' },
],
properties: {
'proj:epsg': ctx.tileMatrix.projection.code,
'linz_basemaps:options': {
Expand Down

0 comments on commit e79e440

Please sign in to comment.