如何在 React Native 地图中设置最小和最大缩放级别
<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>
所有组件 API 位于这个链接 https://github.com/react-community/react-native-maps/blob/master/docs/mapview.md.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)