mapbox-gl-draw
mapbox-gl-draw copied to clipboard
Start using the Feature State API
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).
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.
Any news on this? Can't find much in the issues. Cheers.
Happy to Help