mapbox / mapbox/mapbox-gl-draw
How to set the zindex of a layer on the map?
Open
Nobody has claimed this yet.
auto-triaged
feature
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
map.moveLayer can only move, and cannot set the zindex , likes having a layer with zindex of 10 and draw layers alway under this layer.
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 reviewing how map.moveLayer is used to order draw layers and how Mapbox GL layer ordering is represented. Define a supported way to keep draw layers below a specified layer or at a requested z-index, then verify the ordering behavior with the project's existing tests or examples.
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