Commit 8fc7340e authored by brittainjackson7's avatar brittainjackson7
Browse files

Specify Data Set

Fixes #26
parent 89ec03a6
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -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);
                        }
                    }