mapbox / mapbox/mapbox-gl-draw
Features flicker on selection change
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
Hello,
When mapbox-gl-draw source is getting big, user can observe flickering of drawn features on selection change:

It seems like plugin moves features from one source to another and when there's many features on the map this operation takes time. Maybe for a moment features affected by selection change are not part of any source.
Do you think it is possible to somehow fix this?
**Demo:** https://jsfiddle.net/tpe907dc/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked JSFiddle demo and reproduce selection changes with a large mapbox-gl-draw source. Trace how selection changes move features between sources; done means the visible features no longer flicker during selection changes, including with many drawn features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100