mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Hide location puck bearing if device doesn't have compass

Open ittna opened this issue 3 years ago • 0 comments

Environment

  • Android OS version: 12
  • Devices affected: devices without compass
  • Maps SDK Version: 10.3.0-beta.1

Observed behavior and steps to reproduce

Device without compass shows heading pointing to north always. Should it hide bearing if it can't get device heading?

mapView.location.updateSettings {
    enabled = true
    puckBearingSource = PuckBearingSource.HEADING
}

Expected behavior

Location puck hides bearing image when it can't get device heading.

ittna avatar Jan 14 '22 11:01 ittna