USGS-WiM / FEV

Version 2 of the Flood Event Viewer (FEV)
Other
2 stars 2 forks source link

Add search by STN siteIDs #167

Open HansVraga opened 7 years ago

HansVraga commented 7 years ago

Add STN siteIDs to the list of things that can be searched for in GeoSearch. Perhaps extending the USGS Search for JS ( #166 ) to hit the STN Services and get a list of matching SiteIDs.

HansVraga commented 7 years ago

Alternative, create a different search function similar to searching for CBRS Units separate from location here: https://www.fws.gov/cbra/Maps/Mapper.html

HansVraga commented 6 years ago

Some notes from Todd on this: I'd like to build a Site search feature into FEV to make it easier for users to find particular sites. This comes up in troubleshooting all the time, where someone says, "Site SSCCC##### isn't showing the correct information", and then I have to go search for the site in STN and find some feature on the map that I think I can identify in FEV to zoom-in on. It's a hassle, and I bet it is a frustration for our Emergency Management users during events, who may want to point each other to particular bits of data during the heat of the event.

Solution 1:
You and I already discussed the possibility of adding it to the GEOSEARCH function that is already there, but that presents a couple problems: Users will inevitably try to find a site that they KNOW exists, but it won't exist for the event that they have selected, and that will lead to confusion. The autocomplete function will get kinda wonky if we start introducing hundreds of sites that all begin with the same 2 letters or if we allow the search to find locations by the site ID numbers. Solution 2: Given the above challenges, it might make sense to just have a separate site search button that takes you to the site if it is already loaded somewhere in the current browser map session.

Solution 3: It occurs to me that a better solution might be to use the FILTERS instead. I'm imagining an extra line in the Filters modal called "Site Number". Ideally, it would accept a full Site Number (i.e. SSCCC#####) or the partial ID (i.e. #####).

This idea is a bit of a mismatch because everything else in that modal is a pick list. Maybe we can also make the Site a pick list that is dependent on a chosen State just like the dependency in the County pick list. We could even have it dependent on the County pick list, but I think that adds too much complication for the user doing a search.

Solution 4: Maybe we can get really fancy and put the site ID just above the State pick list field with a search button next to it as shown below: image

The user could enter the Site Number or Site ID and click a search button within the Filter modal. Then the modal would go lookup that site and do one of two things: If the site is not found, return a toast message that the site wasn't found, or display "site not found" somewhere near the search button. If the site was found but has no data for the selected event, return an similar message for that. If the site is found with data for this event, then auto-populate the state and county pick lists based on the results of the search.
Then when the user clicks the Filter button, if the site number is still showing in the Site Search field, the FEV map would display all the sites for that county (for context), but it would zoom way in to the site showing in the Site Search field.

I like solutions 2 and 4 the best, but I don't know which one would be easier to code. Both would be pretty easy to use and allow the user to find a site in context with other sites.

lprivette commented 4 years ago

~add search under geosearch that checks for string match on site id/name.~

Add "Site Search" under "Change Filters" in left sidebar. simple modal, similar to geosearch that searches for string match with existing sites on map for current filter (event and selected filters if they've filtered).