You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReact,{useEffect}from'react';import{Alert}from'react-native';importMapboxfrom'@rnmapbox/maps';importsheetfrom'../../styles/sheet';import{ExampleWithMetadata}from'../common/ExampleMetadata';// exclude-from-docconstShowMap=()=>{useEffect(()=>{Mapbox.locationManager.start();return(): void=>{
Mapbox.locationManager.stop();};},[]);constonUserMarkerPress=(): void=>{
Alert.alert('You pressed on the user location annotation');};return(<><Mapbox.MapViewstyleURL='mapbox://styles/mapbox/satellite-v9'style={sheet.matchParent}testID={'show-map'}gestureSettings={{rotateEnabled: false,simultaneousRotateAndPinchZoomEnabled: false,rotateDecelerationEnabled: false}}><Mapbox.CamerafollowZoomLevel={12}followUserLocation/><Mapbox.UserLocationonPress={onUserMarkerPress}/></Mapbox.MapView></>);};exportdefaultShowMap;
Mapbox Implementation
Mapbox
Mapbox Version
10.19.0
React Native Version
0.76.0
Platform
iOS
@rnmapbox/maps
version10.1.33
Standalone component to reproduce
Observed behavior and steps to reproduce
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2024-11-02.at.16.34.29.mp4
Expected behavior
When
rotateEnabled
ingestureSettings
is set tofalse
, the user can't rotate the map.Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: