这可能很简单,但在网上没有任何人提供如何实际执行的示例,我就是无法让它运作起来。
这是我的render()函数,我应该只需要做这个吗? :
我尝试将MapView.Circle标签放在MapView标签之上或之下,但没有任何不同。有人成功实现了吗?
这是我的render()函数,我应该只需要做这个吗? :
render() {
return (
<MapContainer>
<MapView.Circle
center = {{ latitude: this.state.currentLatitude || 30, longitude: this.state.currentLongitude || 120 }}
radius = { 1000 }
strokeColor = "#4F6D7A"
strokeWidth = { 2 }
/>
<MapView
style = { styles.map }
region = { this.state.mapRegion }
showsUserLocation = { true }
followUserLocation = { true }
onRegionChangeComplete = { this.onRegionChangeComplete.bind(this) }>
</MapView>
<MessageBar />
</MapContainer>
)
}
我尝试将MapView.Circle标签放在MapView标签之上或之下,但没有任何不同。有人成功实现了吗?