高德地图轨迹线粗细的设置strokeWeight

原来的轨迹:

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



版权声明:本文为tang745163962原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。