jibeproject / jibe-vis

Interactive visualisation app for exploring health impacts of urban planning scenarios based on large-scale transport and health simulation modelling.
MIT License
0 stars 0 forks source link

Legend bins should be interactive, filtering map when clicked #25

Closed carlhiggs closed 5 days ago

carlhiggs commented 6 days ago

In this image, image

each of these bins should show a mouse pointer on hover, and when clicked toggle filtering of the map to show only that category (perhaps shifts other bins to grayscale) or click again to view all.

Currently, it doesn't do that. But it would be a nice feature, and intuitively people expect to be able to do that kind of thing.

This was a user request received in our website feedback.

carlhiggs commented 5 days ago

This has now been implemented; e.g.

for a map like this: image

when you select a legend cell, it filters on this, setting the filtered out cells to semi-transparent and grayscale: image

This works both for fill and line layers for now:

image

When you click the previously selected legend cell a second time, the filter is removed:

image