mapbox / mapbox/mapbox-gl-draw

When drawing a polygon, which style element do I address to have transparent fill WHILE drawing.

Open
#1,091 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.