wkl460

Results 4 comments of wkl460

add this 'android/app/src/main/res/values/colors.xml '

center={this.state.center} // 地图中心位置 Geolocation.getCurrentPosition()//获取当前位置改变center .then(data => { console.log(data) this.setState({ center: { longitude: data.longitude, latitude: data.latitude } }) }) .catch(e =>{ console.warn(e, 'error'); })

https://github.com/lovebing/react-native-baidu-map/issues/256

mapview里 onMapStatusChange={(e) =>{ console.log(2,e.target) this.setState({ center1: { longitude: e.target.longitude, latitude:e.target.latitude }, }) } } > > > > ``` > > > > > > > zoom={this.state.zoom} > > >...