Skip to content

Commit

Permalink
feat(dh): add ogc api links as options in preview section
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Apr 26, 2024
1 parent 6ed48e9 commit b7b6c00
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/feature/record/src/lib/map-view/map-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ export class MapViewComponent implements OnInit, OnDestroy {
data,
}))
)
} else if (
link.type === 'service' &&
link.accessServiceProtocol === 'ogcFeatures'
) {
return this.dataService.readAsGeoJson(link).pipe(
map((data) => ({
type: MapContextLayerTypeEnum.GEOJSON,
data,
}))
)
}
return throwError(() => 'protocol not supported')
}
Expand Down

0 comments on commit b7b6c00

Please sign in to comment.