mapdeck
mapdeck copied to clipboard
update brushing code
as per: https://github.com/uber/deck.gl/pull/2914/commits/af7d27e507da963bd775d7b9452c28bae2590cec and https://github.com/uber/deck.gl/blob/master/docs/api-reference/extensions/brushing-extension.md
combine with https://github.com/SymbolixAU/mapdeck/issues/160
Design ideas
every layer gets a brush_option or brush_type, being radius, group, .. other, where
radius : highlights shapes within the radius of the mouse group : highlights shapes with the same 'value' as the given hovered shape(s)
Then, depending on the type chosen will call the required shaders.
May need different shaders for standard and origin-destination layers
TODO
- [x] test on scatterplot
- [x] test on arc
- [x] add to all POINT layers
- [x] polygon
- [x] path
- [x] line
- [x] hexagon
- [ ] greatcircle - not working in deck.gl v8.1*
- [x] mesh
- [ ] implement
getBrushingTarget
related - https://github.com/uber/deck.gl/issues/3591