mapbox / mapbox/mapbox-gl-js

geolocation stops following map on device rotation regression

Open
#9,972 4 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:
1.12.0
browser:
safari

Steps to Trigger Behavior
  1. activate geolocation (map follows user)
  2. rotate iphone (eg from portrait to landscape)
  3. the resulting map movement is not filtered and the geolocation steps out of the follow me modus.

this was an old bug, was then fixed but is now a regression

Link to Demonstration

https://docs.mapbox.com/mapbox-gl-js/example/locate-user/

Expected Behavior

eventually resulting map movement is ignored (keeps following user position)

Actual Behavior

map stops following

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 locate-user example linked in the issue and reproduce the behavior on Safari while rotating an iPhone during geolocation follow mode. Trace how rotation-related map movement interacts with the follow-user behavior. Done means the rotation movement is ignored and the map continues following the user's position.

Written by the indexing model from the issue text.

Assessment

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