Skip to content

Commit

Permalink
fix(tiles): broken link to JSON metadata of dataset tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettelerij committed Nov 12, 2024
1 parent 67fa215 commit b49bce1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions internal/ogc/tiles/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,18 @@ func renderTilesTemplates(e *engine.Engine, collection *config.GeoSpatialCollect
engine.NewTemplateKeyWithName(templatesDir+"tiles.go.json", collectionID),
engine.NewTemplateKeyWithName(templatesDir+"tiles.go.html", collectionID))

// Now render metadata bout tiles per projection/SRS.
// Now render metadata about tiles per projection/SRS.
for _, projection := range config.AllTileProjections {
path = tilesPath + "/" + projection

projectionBreadcrumbs := breadcrumbs
projectionBreadcrumbs = append(projectionBreadcrumbs, []engine.Breadcrumb{
{
Name: projection,
Path: collectionsCrumb + collectionID + path,
},
}...)

if collection != nil {
projectionBreadcrumbs = append(projectionBreadcrumbs, []engine.Breadcrumb{
{
Name: projection,
Path: collectionsCrumb + collectionID + path,
},
}...)
path = g.CollectionsPath + "/" + collectionID + tilesPath + "/" + projection
}
e.RenderTemplatesWithParams(path,
Expand Down

0 comments on commit b49bce1

Please sign in to comment.