mapbox / mapbox/mapbox-gl-draw
Mapbox-gl-draw missing drawn features (intermittent)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
Hi,
In my code I tried to implement a way for user to draw one feature at a time, I achieve this by removing the draw controls after one draw event, sometimes after the draw event, the drawn feature disappears. however if you click off anywhere on the map, it shows up. this happens intermittently, please take a look and try to find out why this is happening and if it can be fixed.
http://jsfiddle.net/beelo/zq3mdsof/
Thanks
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 by reproducing the intermittent disappearance in the linked JSFiddle, focusing on the draw event followed by removal of the draw controls. Trace when the drawn feature becomes visible and when clicking elsewhere on the map makes it appear; done means the feature remains visible reliably after a single draw without requiring another map click.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100