mapbox / mapbox/mapbox-gl-js

Zooming in and out also pans in and out. ¿Does anyone know why that happens?

Open
#12,963 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

"mapbox-gl": "^2.15.0",
When I zoom in or out, my map also pans to the top of the map (if zooming in) or out (if zooming out), and I have not found any kind of information about this specific problem.

### Links to related documentation

https://docs.mapbox.com/mapbox-gl-js/api/map/

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 Mapbox GL JS map API documentation linked in the issue and reproduce the behavior using mapbox-gl ^2.15.0. Investigate the interaction between zooming and panning, then document the cause or provide a fix with a reproducible test or example showing that zooming no longer changes the map position unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.