Sort key not working across different layer types
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
If you have 2 layers of different types, the sort keys won't be taken into consideration, meaning that fill layers could be rendered on top of a symbol even though they have sort keys that suggest that the symbol should be on top.
Steps to Trigger Behavior
- Create a symbol layer with a single item, have a sort key of 100
- Create a fill layer of a single polygon that contains the symbol location, make it have a sort key of 90
- The fill layer will be above the symbol
Expected Behavior
Sort key will be calculated among all layer types and be global
Actual Behavior
Sort keys only work on same layer types
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 reproducing the issue with the two layer types and sort keys described in the steps. Trace the layer-ordering path that handles symbol and fill layers, then verify that a symbol with key 100 renders above a fill with key 90 and that same-type ordering remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100