mapbox / mapbox/mapbox-maps-flutter

LocationPuck2D not showing on Android Devices

Open
#160 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

I am not able to show the 2D location puck on an android device. Also, puck bearing and pulse are not showing on Apple devices. Here is what I'm using:

` _onMapCreated(MapboxMap mapboxMap) {
mapboxMap.compass.updateSettings(settings);
mapboxMap.setBounds(widget.cameraOptions());
mapboxMap.scaleBar.updateSettings(scaleSettings);
mapboxMap.attribution.updateSettings(attributionSettings);
this.mapboxMap = mapboxMap;
mapboxMap.location.updateSettings(LocationComponentSettings(
showAccuracyRing: true,
puckBearingEnabled: true,
pulsingEnabled: true,
locationPuck: LocationPuck(locationPuck2D: LocationPuck2D())));
}`

I also have the following in my android manifest:

`
`

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 reported _onMapCreated setup and the Android manifest location permissions. Reproduce the issue on Android and Apple devices, checking LocationPuck2D visibility plus puck bearing and pulsing. Done means the reported location-puck features work on the affected platforms or the remaining platform limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.