mapbox / mapbox/mapbox-gl-js

Add an option to completely disable camera moving closer to globe when panning towards poles

Open
#13,265 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

## Motivation

In our project, we are using the globe projection and rendering a hexagonal grid through the use of geojson polygons. The problem is, that if we configure the size of hexagons to nicely fit areas in usual latitudes, they become way too large when we move the camera near the poles (with the same zoom level) as the camera is nearer the surface. Would it be possible to add some option to completely disable the camera "zooming" behaviour?

We came across this issue #11353, however it seems that the problem was solved only for low zoom levels where the whole globe is visible but still remains for higher zooms.

Snímek obrazovky 2024-08-28 v 9 39 32

Snímek obrazovky 2024-08-28 v 9 38 05

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 by investigating the globe camera movement behavior described in this issue and compare it with the approach from issue #11353. The work is complete when an option can disable camera movement closer to the globe near the poles at all relevant zoom levels, including higher zooms.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.