Set Max & Min zoom level in React Native Maps
Asked Answered
K

1

5

How to Set Min & Max Zoom level in React Native Maps

<MapView
    ref={(ref) => this.mapView = ref}
    clustering={true}
    clusterTextColor='#fff'
    style={styles.map}
    region={this.props.coordinate}
>
    //My map markers
</MapView>
Kelleher answered 11/7, 2018 at 10:28 Comment(0)
K
12
<MapView
    minZoomLevel={2}  // default => 0
    maxZoomLevel={15} // default => 20
>
    //My map markers
</MapView>

All Component API in This Link.

Kelleher answered 11/7, 2018 at 10:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.