mapbox / mapbox/mapbox-maps-flutter
LocationPuck2D not showing on Android Devices
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
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.
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