react-native-maps: Map screen getting freeze when user try to zoom out less then minZoomLevel
Summary
Map screen getting freeze when user try to zoom out less then minZoomLevel. working fine on Iphone 14 or above and map screen getting freeze on iphone 13, iphone 12, iphone 11, iphone x
Reproducible sample code
<MapView
zoomEnabled={true}
minZoomLevel={12}
maxZoomLevel={20}
zoomTapEnabled={true}
showsUserLocation={true}
userLocationPriority={'high'}
scrollEnabled={true}
showsScale={true}
showsCompass={true}
userInterfaceStyle={modeType}
onClusterPress={(cluster, markers) => {
}}
showsTraffic={true}
showsIndoors={true}
onPress={handleMapPress}
followsUserLocation={false}
ref={mapViewRef}
tracksViewChanges={true}
clusteringEnabled={props?.cluster == false ? false : true}
// for cluster view
preserveClusterPressBehavior={true}
loadingEnabled={true}
mapType={mapType}
onMapReady={(e)=>{
}}
initialRegion={initialLocation}
onPanDrag={(e)=>{
debouncedOnRegionChange(e)
}}
style={styles.container}>
<Marker
coordinate={{
latitude: userLocationHeading.latitude,
longitude: userLocationHeading.longitude,
}}
anchor={{ x: 0.5, y: 0.5 }}
rotation={userLocationHeading.heading}
>
<HeadingMarker heading={userLocationHeading.heading} />
</Marker>
</MapView>
Steps to reproduce
try to zoom out he screen more than the minimum zoom level
Expected result
i am expect that the map will working fine
Actual result
map screen getting freeze
React Native Maps Version
"react-native-maps": "^1.10.1",
What platforms are you seeing the problem on?
iOS (Apple Maps)
React Native Version
react-native": "0.72.4
What version of Expo are you using?
Not using Expo
Device(s)
Iphone 12 pro
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 15
Hi I have been testing on new project is work fine it maybe conflict with some deps install I will create reproduce repo sample for you because it’s a private project