mapbox-gl-draw icon indicating copy to clipboard operation
mapbox-gl-draw copied to clipboard

Start using the Feature State API

Open adrianababakanian opened this issue 4 years ago • 2 comments

Currently, GL Draw does not utilize the Feature State API. Starting to use feature state would result in several benefits, such as:

  • Reduced flickering, which is currently caused by moving between "hot" and "cold" layers.
  • The ability to add hover effects to drawn features (as demonstrated in this example).
  • Reduced CPU usage, since queryRenderedFeatures would not need to be run for every mouse move.
  • A potential way to pass userProperties to midpoints and vertices (see https://github.com/mapbox/mapbox-gl-draw/pull/964 for additional related discussion).

adrianababakanian avatar Jul 08 '20 06:07 adrianababakanian

This sounds like it would be a great improvement to the library :+1: What would the next steps look like do you think? I may be able to help here if I get a sense of the amount of work and what needs doing.

JamesLMilner avatar Jul 10 '20 09:07 JamesLMilner

Any news on this? Can't find much in the issues. Cheers.

Happy to Help

Bryce-Davidson avatar May 12 '23 20:05 Bryce-Davidson