mapbox / mapbox/mapbox-gl-js

Box-zoom / Fit screen coordinates isn't working with non-mercator projections

Open
#11,246 0 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**: 2.6.0-beta.2

**browser**:Any

### Steps to Trigger Behavior

1. Use `http://localhost:9966/debug/heatmap.html`
2. Use box zoom or fit screen coordinates with a slight pitch

### Behavior

- These APIs make use of the FreeCamera interface, which isn't supported by non-mercator projections
- A warning is issued but the behavior isn't fully a no-op

Screen Shot 2021-11-05 at 11 52 42 AM

https://user-images.githubusercontent.com/7061573/140563414-db0d592d-9fd8-4896-83bf-0e8f59318599.mov

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/heatmap.html and the box-zoom and fit-screen-coordinates entry points, then trace how they use the FreeCamera interface under non-mercator projections. Reproduce the issue with a slight pitch and verify that the warning and resulting behavior are consistent with FreeCamera being unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.