I am trying to rotate a map in React Native <MapView> , but could not find a description of how to rotate the map according to the title of the camera. The textbook says:
If this property is set to true and the actual camera is associated with the map, the rotation angle of the camera is used to rotate the map plane around its center point.
So, I got to:
<MapView
style={styles.map}
onRegionChange={this._onRegionChange}
onRegionChangeComplete={this._onRegionChangeComplete}
region={this.state.mapRegion}
annotations={this.state.annotations}
rotateEnabled={true}
But there is no explanation as to how the camera is connected to the card.
Can someone please help on this issue please?
source
share