Loading app/src/components/presentational/DisplayGeoTiff.jsx +7 −6 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ export default function DisplayGeoTiff() { <div id="GeoTiffModal"> <div id="GeoTiffModalHeader"> <div id="GeoTiffTitle"> Displayed GeoTiff: Metadata: </div> <button id="GeoTiffCloseButton" onClick={geoTiffViewer.closeModal}>×</button> </div> Loading @@ -26,6 +26,7 @@ export default function DisplayGeoTiff() { <div className="resultSub" className="resultSub" id = "GeoTiffCollection"></div> <div className="resultSub" id = "GeoTiffID"></div> <div className="resultSub" id = "GeoTiffDate"></div> <div className="resultSub" id = "Assets"></div> </div> </div> <div id="GeoTiffOverlay"></div> Loading app/src/components/presentational/FootprintResults.jsx +1 −2 Original line number Diff line number Diff line Loading @@ -56,9 +56,8 @@ export default function FootprintResults(props) { const showMetadata = value => () => { geoTiffViewer.displayGeoTiff(value.assets.thumbnail.href); geoTiffViewer.changeMetaData(value.collection, value.id, value.properties.datetime); geoTiffViewer.changeMetaData(value.collection, value.id, value.properties.datetime, value.assets); geoTiffViewer.openModal(); console.log(value); } Loading app/src/js/geoTiffViewer.js +16 −11 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ export default class GeoTiffViewer { } changeMetaData( GeoTiffCollectionName, GeoTiffIDName, GeoTiffDateName ) changeMetaData( GeoTiffCollectionName, GeoTiffIDName, GeoTiffDateName, Assets ) { document.getElementById("GeoTiffCollection").innerHTML = ("<strong>Collection:</strong> " + GeoTiffCollectionName); Loading @@ -79,6 +79,11 @@ export default class GeoTiffViewer { document.getElementById("GeoTiffDate").innerHTML = ("<strong>Date:</strong> " + GeoTiffDateName); document.getElementById("Assets").innerHTML = ("<strong>Assets:</strong> <br>"); for (const asset in Assets) { document.getElementById("Assets").innerHTML += ("<a href=" + Assets[asset]["href"] + ">" + asset + "</a><br>"); } } openModal() Loading app/src/styles.css +5 −3 Original line number Diff line number Diff line Loading @@ -7,6 +7,10 @@ body { background: lightgray; } a:link { text-decoration: none; } /* App Layout Grid */ Loading Loading @@ -309,7 +313,6 @@ Controls the CSS for projection buttons when there is no available projection padding-bottom: 2px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); margin-bottom: 3px; word-wrap: break-word; } Loading Loading @@ -368,6 +371,7 @@ GeoTiff Modal Container } #GeoTiffModalHeader #GeoTiffTitle { font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 1.20rem; font-weight: bold; } Loading @@ -386,7 +390,6 @@ GeoTiff Modal Container padding: 10px 15px; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.12); } #GeoTiffAsset { Loading Loading @@ -433,4 +436,3 @@ GeoTiff Modal Container opacity: 1; pointer-events: all; } Loading
app/src/components/presentational/DisplayGeoTiff.jsx +7 −6 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ export default function DisplayGeoTiff() { <div id="GeoTiffModal"> <div id="GeoTiffModalHeader"> <div id="GeoTiffTitle"> Displayed GeoTiff: Metadata: </div> <button id="GeoTiffCloseButton" onClick={geoTiffViewer.closeModal}>×</button> </div> Loading @@ -26,6 +26,7 @@ export default function DisplayGeoTiff() { <div className="resultSub" className="resultSub" id = "GeoTiffCollection"></div> <div className="resultSub" id = "GeoTiffID"></div> <div className="resultSub" id = "GeoTiffDate"></div> <div className="resultSub" id = "Assets"></div> </div> </div> <div id="GeoTiffOverlay"></div> Loading
app/src/components/presentational/FootprintResults.jsx +1 −2 Original line number Diff line number Diff line Loading @@ -56,9 +56,8 @@ export default function FootprintResults(props) { const showMetadata = value => () => { geoTiffViewer.displayGeoTiff(value.assets.thumbnail.href); geoTiffViewer.changeMetaData(value.collection, value.id, value.properties.datetime); geoTiffViewer.changeMetaData(value.collection, value.id, value.properties.datetime, value.assets); geoTiffViewer.openModal(); console.log(value); } Loading
app/src/js/geoTiffViewer.js +16 −11 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ export default class GeoTiffViewer { } changeMetaData( GeoTiffCollectionName, GeoTiffIDName, GeoTiffDateName ) changeMetaData( GeoTiffCollectionName, GeoTiffIDName, GeoTiffDateName, Assets ) { document.getElementById("GeoTiffCollection").innerHTML = ("<strong>Collection:</strong> " + GeoTiffCollectionName); Loading @@ -79,6 +79,11 @@ export default class GeoTiffViewer { document.getElementById("GeoTiffDate").innerHTML = ("<strong>Date:</strong> " + GeoTiffDateName); document.getElementById("Assets").innerHTML = ("<strong>Assets:</strong> <br>"); for (const asset in Assets) { document.getElementById("Assets").innerHTML += ("<a href=" + Assets[asset]["href"] + ">" + asset + "</a><br>"); } } openModal() Loading
app/src/styles.css +5 −3 Original line number Diff line number Diff line Loading @@ -7,6 +7,10 @@ body { background: lightgray; } a:link { text-decoration: none; } /* App Layout Grid */ Loading Loading @@ -309,7 +313,6 @@ Controls the CSS for projection buttons when there is no available projection padding-bottom: 2px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); margin-bottom: 3px; word-wrap: break-word; } Loading Loading @@ -368,6 +371,7 @@ GeoTiff Modal Container } #GeoTiffModalHeader #GeoTiffTitle { font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 1.20rem; font-weight: bold; } Loading @@ -386,7 +390,6 @@ GeoTiff Modal Container padding: 10px 15px; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.12); } #GeoTiffAsset { Loading Loading @@ -433,4 +436,3 @@ GeoTiff Modal Container opacity: 1; pointer-events: all; }