OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Remember address as cookie #395

Open smalers opened 3 years ago

smalers commented 3 years ago

It will be a pain if users need to re-entered their address each time that an address search feature is used. A better user experience would be to save the address in a cookie and allow them to select it again. Below are technical considerations:

  1. Because the address search might be used with multiple addresses, saving only one address is limiting. Instead, an array of addresses should be saved. This is similar to how a browser remembers other fill-in-the-blank data, but I'm not sure we want to rely on that.
  2. The addresses should be remembered across sessions. Therefore, using cookies may be the appropriate solution.
  3. Need a way to let users select (if they want to), without cluttering up the UI.