React native 设置最大值&;反应本机贴图中的最小缩放级别
如何在React Native Maps中设置最小和最大缩放级别React native 设置最大值&;反应本机贴图中的最小缩放级别,react-native,react-native-maps,React Native,React Native Maps,如何在React Native Maps中设置最小和最大缩放级别 <MapView ref={(ref) => this.mapView = ref} clustering={true} clusterTextColor='#fff' style={styles.map} region={this.props.coordinate} > //My map markers </MapView> this.mapView
<MapView
ref={(ref) => this.mapView = ref}
clustering={true}
clusterTextColor='#fff'
style={styles.map}
region={this.props.coordinate}
>
//My map markers
</MapView>
this.mapView=ref}
集群={true}
clusterTextColor='#fff'
style={style.map}
region={this.props.coordinate}
>
//我的地图标记
0
maxZoomLevel={15}//default=>20
>
//我的地图标记
所有组件的API都在
<MapView
minZoomLevel={2} // default => 0
maxZoomLevel={15} // default => 20
>
//My map markers
</MapView>