How to Set Min & Max Zoom level in React Native Maps
<MapView
ref={(ref) => this.mapView = ref}
clustering={true}
clusterTextColor='#fff'
style={styles.map}
region={this.props.coordinate}
>
//My map markers
</MapView>
How to Set Min & Max Zoom level in React Native Maps
<MapView
ref={(ref) => this.mapView = ref}
clustering={true}
clusterTextColor='#fff'
style={styles.map}
region={this.props.coordinate}
>
//My map markers
</MapView>
<MapView
minZoomLevel={2} // default => 0
maxZoomLevel={15} // default => 20
>
//My map markers
</MapView>
All Component API in This Link.
© 2022 - 2024 — McMap. All rights reserved.