ua-snap / ardac-explorer

ARDAC GUI Explorer
0 stars 0 forks source link

Add lat/lon input component and example item with dynamic API links #23

Closed cstephen closed 8 months ago

cstephen commented 8 months ago

This PR adds a new LatLngSelector component that was adapted from our Arctic-EDS version of the component, updated as needed to work with Nuxt 3 + Pinia + TypeScript.

The component uses the same parse-dms NPM module that Arctic-EDS does, so it accepts lat/lon coordinate strings in all standard formats. It also performs the same BBOX validation that Arctic-EDS does and warns the user if they have entered invalid coordinates.

I've also added a new item, "Projected permafrost and mean annual ground temperature", that uses the lat/lon component to generate CSV and JSON links based on the coordinates that were entered. This item also includes the same permafrost source data link and citation information as Arctic-EDS.

To test: