mapbox / mapbox/mapbox-gl-js

Custom Layer cube is clipped on large zoom

Open
#7,970 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
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.

![image](https://user-images.githubusercontent.com/988471/53580851-293c0800-3b85-11e9-84b8-eb316a285499.png)

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.