Closed walkerjeffd closed 2 years ago
I checked this. If you turn off the metric layer, the correct embayment is still selected. The issue is with the order of layers (i.e., which layer is on top). When you switch habitat layers, the metric layer gets moved to the top and mostly/completely blocks the clickable embayment layer with the red outline.
The background layer order jumps around as well (see #10).
I need to work through the creation/mount/update lifecycle and figure out how to keep the correct layers on top.
Some odd behavior when I have an embayment selected, and then I change habitat type.
Starting with Eelgrass, I select Annisquam.
Then I click on Salt Marsh radio button, and Annisquam is still shown on bar chart, but the polygon no longer has red outline on the map. Bar chart shows 639 and 636 acres.
Then I click on the Annisquam polygon (trying to select it again), but I'm actually unselecting it so there is still no red outline. Bar chart now shows 33,767 and 33,235 acres for "All Assessment Areas". So looks like I have in fact unselected it, but it wasn't clear that it was already selected because it did not have a red outline after I switched from Eelgrass to Salt Marsh.
Bottom line is that if an embayment is selected for a given habitat type, and the user then changes the habitat type, the data for that embayment is still shown on the bar chart, but it is no longer shown as selected on the map (no red outline).