nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

IOS: UserTrackingMode `FollowWithCourse` doesn't rotate when the course changes. #1461

Open kryhtin opened 5 years ago

kryhtin commented 5 years ago

When enabling userTrackingMode FollowWithCourse, the map should be rotate when the course changes, but it doesn't happen.

<MapboxGL.MapView
  ref={c => (this.map = c)}
  styleURL={this.props.styleURL}
  userTrackingMode={
     MapboxGL.UserTrackingModes[this.props.userTrackingMode]
  }
  pitch={this.computePitch(this.props.userTrackingMode)}
  zoomLevel={this.computeZoom(this.props.userTrackingMode)}
  logoEnabled={false}
  attributionEnabled={false}
  onPress={this.onPress}
  style={styles.map}
  onDidFinishRenderingMapFully={() => this.setCenter()}
  scrollEnabled={false},
  pitchEnabled={false},
  rotateEnabled={true},
  zoomEnabled={true}
/>

I recorded a small video. IMAGE ALT TEXT HERE

React native: v0.55.4 Mapbox: v6.1.2