折线、多边形、圆
var map = new AMap.Map('container', {
resizeEnable: true,
center: [116.397428, 39.90923],
zoom: 13
});
var lineArr = [
[116.368904, 39.913423],
[116.382122, 39.901176],
[116.482123, 39.801178],
[116.387271, 39.912501],
[116.398258, 39.904600]
];
var polyline = new AMap.Polyline({
path: lineArr, //设置线覆盖物路径
strokeColor: "#FF0000", //线颜色
strokeOpacity: 2, //线透明度
strokeWeight: 2, //线宽
strokeStyle: "solid", //线样式
strokeDasharray: [10, 5] //补充线样式
});
polyline.setMap(map);