在hbuilder x 2.6.5 nvue模式中map。
polyline画线points如果采用push的方式动态添加经纬度的话,地图上不会画线,demo app见hello2.zip第162行开始。
if (this.polylines[count].points.length <= POINTS) {
this.polylines[count].points.push(LOCATION);
} else {
count++;
this.polylines.splice(count, 0, {
color: '#DC143C',
arrowLine: true,
width: width,
points: [this.polylines[count - 1].points[POINTS - 1]]
});
// 接上一根线最后一点7
this.polylines[count].points.push(LOCATION);
}
marker对象中如果直接修改经纬度的话,marker也不会显示:demo app见hello2.zip第190行开始
// 采用下面这种方式marker不显示
this.carMarkers[0].longitude = LOCATION.longitude
this.carMarkers[0].latitude = LOCATION.latitude
在nvue中如果polyline采用赋值的方式可以画线,demo app见hello3.zip,但是设置线条颜色在ios 13(其他ios未测试,在安卓端起作用)上不起作用。而且线条每段都带有箭头,如图:

arrowIconPath在iso上也不起作用,borderColor在ios和安卓上都不起作用。