Mah*_*our 3 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>
Run Code Online (Sandbox Code Playgroud)
<MapView
minZoomLevel={2} // default => 0
maxZoomLevel={15} // default => 20
>
//My map markers
</MapView>
Run Code Online (Sandbox Code Playgroud)
此链接中的所有组件 API 。
| 归档时间: |
|
| 查看次数: |
6135 次 |
| 最近记录: |