原来的轨迹:
var lineRoad = new MMap.Polyline({
id : "points" + thisD.lineIdIndex,
path : points,
strokeColor : "#005cb5", // 线颜色
strokeOpacity : 0.8, // 线透明度
strokeWeight : 3 // 线宽
});
通过更改Polyline 下 strokeWeight 属性值来设置轨迹线的粗细,高德默认是6
更改后:
参考:http://code.mapabc.com/class_javascript.html