Skip to content

Commit bc3c8cc

Browse files
authored
feat: add titiler link for items (#40)
1 parent 6438a05 commit bc3c8cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/stac/value.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ function ValueHeader({ value }: { value: StacValue }) {
9494
STAC Browser <LuExternalLink></LuExternalLink>
9595
</a>
9696
</Button>
97+
{value.type == "Feature" && (
98+
<Button asChild variant={"surface"} size={"xs"}>
99+
<a
100+
href={"https://titiler.xyz/stac/viewer?url=" + selfLink.href}
101+
target="_blank"
102+
>
103+
TiTiler <LuExternalLink></LuExternalLink>
104+
</a>
105+
</Button>
106+
)}
97107
</HStack>
98108
)}
99109
</Stack>

0 commit comments

Comments
 (0)