mapbox / mapbox/mapbox-gl-draw
how to draw a polygon above a 100% opacity polygon?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
I have an issue when drawing a polygon and change its opacity to 100%, then draw another polygon. it show below it not above?, is there an option to add in the draw.add function to show the newly added polygon above all of the draw?
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 reading the draw.add behavior and the polygon rendering or layer-ordering entry points in this repository. Reproduce the case with a 100% opacity polygon followed by a second polygon, then determine how newly added features are ordered. Done means the requested ordering behavior is implemented or clearly documented and verified with the relevant rendering behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100