maps icon indicating copy to clipboard operation
maps copied to clipboard

[Bug]: showsUserHeadingIndicator is not working on Android

Open lmalvasia opened this issue 2 years ago • 7 comments

Mapbox Implementation

Mapbox

Mapbox Version

default

Platform

Android

@rnmapbox/maps version

10.0.13

Standalone component to reproduce

import React from 'react';
import {
  MapView,
  Camera,
  UserLocation
} from '@rnmapbox/maps';

class Example extends React.Component {
  render() {
    return (
      <MapView
        logoEnabled={false}
        style={{ flex: 1 }}
        attributionEnabled={false}
        styleURL="mapbox://styles/mapbox/satellite-streets-v11"
        scaleBarEnabled={false}
      >
        <UserLocation
          visible
          showsUserHeadingIndicator
        />
      </MapView>
    );
  }
}

Observed behavior and steps to reproduce

After updating to the latest version of rnmapbox 10.0.13, I've seen that this property has no effect on Android devices.

Android: Android device

iOS: iOS device

Expected behavior

The heading indicator should be shown in Android when the property is set to true.

Notes / preliminary analysis

No response

Additional links and references

No response

lmalvasia avatar Sep 12 '23 02:09 lmalvasia

We are having the same issue as well.

andrei-tofan avatar Sep 15 '23 09:09 andrei-tofan

maybe your phone doesn't have a compass sensor

lufke avatar Sep 20 '23 17:09 lufke

@lufke Using previous versions, worked fine. I have a Samsung Note 20 Ultra

lmalvasia avatar Sep 21 '23 18:09 lmalvasia

@lufke In our case as well it worked in the previous

andrei-tofan avatar Sep 29 '23 08:09 andrei-tofan

Have you tried setting the androidRenderMode to "gps"? Might have to also set the renderMode to UserLocationRenderMode.Native

Jobjeuh avatar Oct 03 '23 11:10 Jobjeuh

Have you tried setting the androidRenderMode to "gps"? Might have to also set the renderMode to UserLocationRenderMode.Native

this solved my issue, thanksss

harbi98 avatar Oct 11 '23 03:10 harbi98