Loading src/components/container/GeoStacApp.jsx +1 −2 Original line number Diff line number Diff line Loading @@ -13,13 +13,12 @@ import Sidebar from "../presentational/Sidebar.jsx"; * @component */ export default function GeoStacApp(props) { let [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); let [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); // make sure its a stac item for appending stuff let [queryAddress, setQueryAddress] = React.useState( props.mapList.systems[4].bodies[0].collections[0].links.find(link => link.rel === "items").href + "?"); /** * Handles target body selection * @param {*} value selection event Loading src/components/presentational/FootprintResults.jsx +3 −6 Original line number Diff line number Diff line Loading @@ -112,21 +112,18 @@ export default function FootprintResults(props) { } let collectionUrls = {}; for (const collection of props.target.collections) { for (const collection of props.target.collections) {} let isInStacAPI = collection.hasOwnProperty("stac_version"); if(isInStacAPI) { if(isInStacAPI) { let itemsUrl = collection.links.find(link => link.rel === "items").href; collectionUrls[collection.id] = itemsUrl + myFilter + pageInfo; } else { else { let itemsUrl = collection.links.find(link => link.rel === "items").href; collectionUrls[collection.id] = itemsUrl + pageInfo; } } (async () => { Loading Loading
src/components/container/GeoStacApp.jsx +1 −2 Original line number Diff line number Diff line Loading @@ -13,13 +13,12 @@ import Sidebar from "../presentational/Sidebar.jsx"; * @component */ export default function GeoStacApp(props) { let [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); let [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); // make sure its a stac item for appending stuff let [queryAddress, setQueryAddress] = React.useState( props.mapList.systems[4].bodies[0].collections[0].links.find(link => link.rel === "items").href + "?"); /** * Handles target body selection * @param {*} value selection event Loading
src/components/presentational/FootprintResults.jsx +3 −6 Original line number Diff line number Diff line Loading @@ -112,21 +112,18 @@ export default function FootprintResults(props) { } let collectionUrls = {}; for (const collection of props.target.collections) { for (const collection of props.target.collections) {} let isInStacAPI = collection.hasOwnProperty("stac_version"); if(isInStacAPI) { if(isInStacAPI) { let itemsUrl = collection.links.find(link => link.rel === "items").href; collectionUrls[collection.id] = itemsUrl + myFilter + pageInfo; } else { else { let itemsUrl = collection.links.find(link => link.rel === "items").href; collectionUrls[collection.id] = itemsUrl + pageInfo; } } (async () => { Loading