问题描述
如何在polyline上以标准经度和纬度为Mapview.Marker设置动画。请帮助我
{!! this.state.currentLatitude && !! this.state.currentLongitude &&
ref={map => this.map = map}
provider="google"
zoomEnabled={true}
rotateEnabled={true}
initialRegion={{
latitude: this.state.currentLatitude,longitude: this.state.currentLongitude,latitudeDelta: 0.0922,longitudeDelta: 0.0421,}}
>
{!!this.state.currentLatitude && !!this.state.currentLongitude &&
<Marker
coordinate={{latitude: this.state.currentLatitude,}}
/>
}
{!!this.state.destinationLatitude && !!this.state.destinationLongitude &&
<Marker
coordinate={{"latitude":this.state.destinationLatitude,"longitude":this.state.destinationLongitude}}
/> }
{ <polyline
coordinates={[
{ latitude: this.state.currentLatitude,longitude: this.state.currentLongitude },{ latitude: this.state.destinationLatitude,longitude: this.state.destinationLongitude }
]}
strokeWidth={4}
strokeColor="red"
/> }
</Map>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)