var polyline = new BMap.Polyline([
new BMap.Point(121.490883, 30.914898),
new BMap.Point(121.351753, 30.887382),
new BMap.Point(121.316396, 30.881927),
new BMap.Point(121.264079, 30.89358),
new BMap.Point(121.222397, 30.892588)
], { strokeColor: "blue", strokeWeight: 2, strokeOpacity: 0.5 }); //创建折线
这是代码 求解