justice40-tool icon indicating copy to clipboard operation
justice40-tool copied to clipboard

Implement the toggle to change from selecting census tracts to selecting tribal areas

Open KameronKerger opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. Since tribal areas will now be visible on the map, people would expect to interact with them to get information about the areas as they do the census tracts. Having a toggle to control what they want to select seems to be a reasonable solution.

Describe the solution you'd like Add a toggle to let people select either census tracts or tribal areas. Screen Shot 2022-06-23 at 7 42 30 AM

Describe alternatives you've considered This is a new feature to support new functionality.

Additional context We will need to figure out the panel for tribal areas.

Done ✅

  • [x] switching between census and tribal on OS map
  • [x] switching between census and tribal on MapBox map
  • [x] tribal - fill, borders, zoom to feature - on MapBox map
  • [x] tribal - feature selection on MapBox map
  • [x] show tribal fields on side panel
  • [x] when switching layers => reset side-panel state
  • [x] tribal - fill, borders, zoom to feature - on OS map
  • [x] tribal - feature selection on OS map

Blocked ❗

  • [ ] side panel designs needed when tribal lands are selected. Only two fields available ATM - one is an ID which may not provide any value to display
  • [ ] main map designs needed for desktop / mobile

Todo

  • [ ] implement actual switching UI (drop down on desktop)
  • [ ] implement switching UI on mobile (icon with pop-up drawer)
  • [ ] i18n
  • [ ] mobile design / testing
  • [ ] add layer state to URL so that if someone shares the link with a tribal layer selected, the map should render the same layer selected (enhancement)
  • [ ] Figure out some way to show smaller areas at low zoom ( e.g. CO, enhancement)

KameronKerger avatar Jun 23 '22 14:06 KameronKerger

We are not going with this solution. Creating a new issue

BethMattern avatar Sep 21 '22 16:09 BethMattern