Closed smcalilly closed 2 years ago
And an odd UI question: What is the function of the table of search results? It doesn't seem to be adding much at the moment. Are there plans to add something like, highlight the building on the map when a result is hovered and select it when a result is clicked?
This is a good question and I agree, the table seems pointless as is. I've been wanting to add that feature you suggest and was planning to bring it up. I don't think it would be too difficult, but we'd be nearing the limit of complexity with this code.
Somewhat related, we could also go the opposite way, where a user selects a geometry on the map and allows them to save it by simply clicking. And it could also highlight in the table.
Garret has said that their staff knows the id's since it's common for them to use it, so I think having an identifier can be helpful. We could also add a popup easily that shows this info, like 15 minutes easy.
What do you think? @hancush, cc @fgregg
To recap, some ways to improve it:
@smcalilly I think you should spin off the table UI into a separate issue.
Overview
For issues:
109
108
useSessionStorage
hook for this. i tried to roll my own (real quick) based on an internet example but it was buggy. let me know if we need to use another library.107
LineString
)112
MapZoom
component that uses the react-leafletuseMap
hook. the component zooms to the search geometries if there are any. if there aren't but there are existing geometries, then it will zoom to those geometries.Notes
Remaining UI improvements not in this PR:
95
114
Testing Instructions
109
108
107
112