【问题标题】:Set Max & Min zoom level in React Native Maps在 React Native Maps 中设置最大和最小缩放级别
【发布时间】:2018-07-11 10:28:35
【问题描述】:

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

<MapView
    ref={(ref) => this.mapView = ref}
    clustering={true}
    clusterTextColor='#fff'
    style={styles.map}
    region={this.props.coordinate}
>
    //My map markers
</MapView>

【问题讨论】:

    标签: react-native react-native-maps


    【解决方案1】:
    <MapView
        minZoomLevel={2}  // default => 0
        maxZoomLevel={15} // default => 20
    >
        //My map markers
    </MapView>
    

    This Link 中的所有组件 API。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-29
      • 1970-01-01
      • 2011-05-07
      • 1970-01-01
      • 2011-05-13
      相关资源
      最近更新 更多