deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

Increase line width on hover

Open UttamRahane opened this issue 6 years ago • 2 comments

How can I increase width of line on hover? I want to click on line and it's hard to pick line because it's width in 1. I can't set more because there are lot of lines so I want to increase width of particular line on hover.

UttamRahane avatar Mar 30 '20 13:03 UttamRahane

Buy writing a custom layer you can achieve this, basically your custom layer vertex shader would check if current vertex belongs to picked instance and scale it if so.

If all you need is able to pick when you get closer to the line, easier thing would be to use pickingRadius prop, set it to a value like 5 or 10.

1chandu avatar Apr 03 '20 01:04 1chandu

Thanks, it helps to solve my issue.

UttamRahane avatar Apr 07 '20 13:04 UttamRahane