Skip to content

Commit 6f7620d

Browse files
committed
add iframe=true to COG viewer iframe URL [source-cooperative#169]
1 parent 969ae35 commit 6f7620d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/features/products/object-browser/ObjectPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const getIframeAttributes = (
1313
switch (sourceUrl.split(".").pop()) {
1414
case "pmtiles":
1515
return {
16-
src: `https://pmtiles.io/#url=${sourceUrl}&iframe=true`,
16+
src: `https://pmtiles.io/#iframe=true&url=${sourceUrl}`,
1717
style: { border: "none" },
1818
};
1919
case "parquet":
@@ -23,7 +23,7 @@ const getIframeAttributes = (
2323
};
2424
case "tif":
2525
return {
26-
src: `https://cogeo.org/viewer/#url=${sourceUrl}`,
26+
src: `https://cogeo.org/viewer/#iframe=true&url=${sourceUrl}`,
2727
style: { border: "none" },
2828
}
2929
default:

0 commit comments

Comments
 (0)