Support Location Override
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by tracing the Flutter location API alongside the native location.override(provider:) and overrideLocationProvider entry points. Review how FollowPuckViewportState obtains location updates, then define the override lifecycle and verify that injected latitude, longitude, accuracy, and heading updates are followed without the Mapbox GPS provider remaining active.
Written by the indexing model from the issue text.
Description
Enable native location override to take incoming user locations and pass it through into mapbox. Trying to override the current experience using layers to mock a blue dot and shifting the camera to follow the blue dot feels inauthentic leading to a poor user experience.
Current limitation
- The Flutter SDK does not expose
location.override(provider:)(iOS) oroverrideLocationProvider(Android). FollowPuckViewportStatefollows Mapbox's internal GPS provider.
Desired behaviour
- Provide an API to override the location provider in Flutter.
- Allow injecting external location updates (lat, lon, accuracy, heading) from Dart into the overridden provider.
- When overridden, Mapbox GPS should not be active
FollowPuckViewportStateshould smoothly follow the injected locations, preserving the current UX.
- Dominant language
- Dart
- Stars
- 379
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-maps-flutter
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mapbox/mapbox-maps-flutter#1144 ·
-
iOS: the map cannot be captured or read by flutter, because it is a platform viewPossibly taken @Nixxx19 claimed this 38 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/mapbox-maps-flutter#1142 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
mapbox/mapbox-maps-flutter#1140 ·
-
Normalize ornament positioning relative to safe areas on iOS and AndroidMay be free again @maios claimed this 82 days ago, and no pull request is open. Open
mapbox/mapbox-maps-flutter#1137 · 1 comment · 1 reaction · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
mapbox/mapbox-maps-flutter#1136 · 1 comment ·
All issues in mapbox/mapbox-maps-flutter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quickemu-project/quickgui#328 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ApplETS/Notre-Dame#1393 ·
-
(fix) Wrong dateOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Solvro/mobile-topwr#1239 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
linagora/twake-on-matrix#3435 ·
Maintainers usually reply within 3 days
-
bug to check
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day