Loading src/js/FetchData.js +14 −9 Original line number Diff line number Diff line Loading @@ -112,14 +112,19 @@ export default async function Initialize(){ if (hasFootprints) { for (const collection of stacApiCollections.collections){ if (target.name == collection.summaries["ssys:targets"][0].toUpperCase()) { // Add a specification to the title in order to show what kind of data the user is requesting collection.title = collection.title.concat(" (Raster)") myCollections.push(collection); } } for (const pycollection of vectorApiCollections.collections){ // view the collection as GEOJSON let target_name = pycollection.id.split('/')[0]; if (target.name == target_name.toUpperCase()) { pycollection.links[9].href = "https://astrogeology.usgs.gov/pygeoapi" + pycollection.links[9].href; // Add a specification to the title in order to show what kind of data the user is requesting pycollection.title = pycollection.title.concat(" (Vector)"); myCollections.push(pycollection); } } Loading Loading
src/js/FetchData.js +14 −9 Original line number Diff line number Diff line Loading @@ -112,14 +112,19 @@ export default async function Initialize(){ if (hasFootprints) { for (const collection of stacApiCollections.collections){ if (target.name == collection.summaries["ssys:targets"][0].toUpperCase()) { // Add a specification to the title in order to show what kind of data the user is requesting collection.title = collection.title.concat(" (Raster)") myCollections.push(collection); } } for (const pycollection of vectorApiCollections.collections){ // view the collection as GEOJSON let target_name = pycollection.id.split('/')[0]; if (target.name == target_name.toUpperCase()) { pycollection.links[9].href = "https://astrogeology.usgs.gov/pygeoapi" + pycollection.links[9].href; // Add a specification to the title in order to show what kind of data the user is requesting pycollection.title = pycollection.title.concat(" (Vector)"); myCollections.push(pycollection); } } Loading