在 React Native Maps 中设置最大和最小缩放级别

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)

Mah*_*our 7

<MapView
    minZoomLevel={2}  // default => 0
    maxZoomLevel={15} // default => 20
>
    //My map markers
</MapView>
Run Code Online (Sandbox Code Playgroud)

此链接中的所有组件 API 。