HWR-llc / ett

MassBays Phase I data explorer for data from the EPA WQX Portal
MIT License
1 stars 1 forks source link

Problem selecting an embayment and then switching habitat types #75

Closed walkerjeffd closed 2 years ago

walkerjeffd commented 2 years ago

Some odd behavior when I have an embayment selected, and then I change habitat type.

Starting with Eelgrass, I select Annisquam.

image

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.

image

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.

image

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).

HWR-llc commented 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.