如何解决如何以标准的经度和纬度为折线上的Mapview.Marker设置动画
如何在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 举报,一经查实,本站将立刻删除。