【发布时间】:2018-07-20 04:42:08
【问题描述】:
我已将 react native 地图与我最新的 react native 应用程序集成在一起。在地图中,我想为地图设置边界。官方文档建议方法
setMapBoundaries 但它需要像 northEast: LatLng, southWest: LatLng 这样的参数。
如何获取这些参数的值。我的 mapView 是这样的。
<MapView
showsUserLocation
provider={MapView.PROVIDER_GOOGLE}
style={styles.map}
region={region}
onRegionChangeComplete={this.onRegionChangeComplete}
setMapBoundaries={}
onUserLocationChange={this.onUserLocationChange}
>
【问题讨论】:
标签: react-native react-native-maps react-android