in vincentsarago/MAXAR_opendata_to_pgstac#2 I've added the item-assets extension to the collections and then I'm using it (if available) in the mosaic-builder
|
if (collection_metadata && collection_metadata.item_assets) { |
|
var tbl = document.createElement("table"); |
|
tbl.classList = ["mt6"]; |
|
tbl.style.width = '100%'; |
|
|
|
var row = tbl.insertRow(-1); |
|
var cell1 = row.insertCell(0); |
|
var cell2 = row.insertCell(1); |
|
cell1.innerHTML = "Asset"; |
|
cell2.innerHTML = "Type" |
|
|
|
for (let asset_name in collection_metadata.item_assets) { |
|
var row = tbl.insertRow(-1); |
|
var cell1 = row.insertCell(0); |
|
var cell2 = row.insertCell(1); |
|
cell1.innerHTML = asset_name; |
|
cell2.innerHTML = collection_metadata.item_assets[asset_name].type; |
|
} |
|
collection_meta.appendChild(tbl) |
Collections
Items
- eo
- projection
- alternate-assets
- ?
in vincentsarago/MAXAR_opendata_to_pgstac#2 I've added the
item-assetsextension to the collections and then I'm using it (if available) in the mosaic-buildereoAPI/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html
Lines 451 to 469 in 3dd87b8
Collections
Items