mapbox / mapbox/mapbox-gl-draw
Ability to hide/show individual draw tools (not the tool buttons)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
**mapbox-gl-js version**: 1.7.0
**mapbox-gl-draw version**: 1.0.9
I suppose there is no API to hide/show individual tools (linestring, point, polygon) drawn on the map. In my web application, i display a list of the tools added to the map. From the list, the user can select a tool and hide (not delete) it from the map and then show it back. A hide/show API would be handy.
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
The issue names no file, test, or entry point. Start by locating the existing feature-management and visibility behavior in the draw implementation, then review related tests before deciding how individual line, point, and polygon features should be addressed. Done means a documented API can hide and restore an individual feature without deleting it, with coverage for each requested geometry type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100