mapbox / mapbox/mapbox-gl-draw
When drawing a polygon, which style element do I address to have transparent fill WHILE drawing.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
Working with MapboxGLDraw 1.2.2, I'm wondering what style I have to use to set the polygon color while drawing.
So I have the 'gl-draw-polygon-fill-active' for active mode and I want this when I'm done, but while I'm drawing I don't want the polygon to have a fill color. Is there another style id I can address?
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 MapboxGLDraw 1.2.2 style configuration and compare the gl-draw-polygon-fill-active styling with the layers used while a polygon is being drawn. Verify the result by drawing a polygon and confirming that its fill is transparent during drawing while the completed polygon retains the desired fill.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100