mapbox / mapbox/mapbox-gl-js

renderingMode:'3d', Rotate in 3D ball mode, addLayer element rotate bug

Open
#12,618 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3d :triangular_ruler: docs :scroll:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Hello! Thanks for contributing:
The example I used to transform: https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/
set Earth zoom: 1.4,and Dynamic Settings Center to Realize automatic rotation of the 3D earth。
the queition is。content in addLayer not 3D rotation.just 2D shift,Not moving to the back of the earth。
feel moving on a plane.

version:
"mapbox-gl": "^2.13.0"
"three": "^0.150.1",

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 the linked add-3d-model example and reproduce the issue at zoom 1.4 using the reported mapbox-gl and three versions. Inspect how the addLayer content responds to dynamic globe rotation; done means the 3D content rotates with the earth and moves behind it rather than appearing to move on a flat plane.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, three.js, typescript
Domain
computer-graphics, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.