Custom Layer cube is clipped on large zoom
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: 0.52.0
**browser**: Chrome OSX
### Steps to Trigger Behavior
1. Zoom map
2. Move up
### Link to Demonstration
Use example from debug for three.js without buildings layer:
https://github.com/mapbox/mapbox-gl-js/blob/master/debug/threejs.html
https://bravecow.github.io/mapbox-3d/test#16.5/43.65785/-79.390382/20/60
### Expected Behavior
Moving map doesn't affect cube clipping.
### Actual Behavior
Moving map affects cube clipping.

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 debug/threejs.html and reproduce the issue using the linked demonstration at zoom 16.5. Compare the cube's clipping while zooming and moving the map in Chrome on macOS. Done means the custom layer cube no longer changes clipping when the map is moved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- three.js, typescript
- Domain
- computer-graphics, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100