Go to Baidu API official website to download CurveLine.min.js, pay attention to copy down the front of the line number of Js want to delete .
// 百度地图API功能 var map = new BMap.Map("container"); map.centerAndZoom(new BMap.Point(118.454, 32.955), 6); map.enableScrollWheelZoom(); var beijingPosition=new BMap.Point(116.432045,39.910683), hangzhouPosition=new BMap.Point(120.129721,30.314429), taiwanPosition=new BMap.Point(121.491121,25.127053); var points = [beijingPosition,hangzhouPosition, taiwanPosition]; //创建弧线 var curve = new new BMapLib.CurveLine (Points, {strokeColor is: "Blue", strokeWeight:. 3, strokeOpacity: 0.5 }); the Map.addOverlay (Curve); // add to the map curve.enableEditing (); // open editing // modify the curvature of the idea: // arc is composed of a number of line segments, each segment so the increase in latitude (reduction), we can achieve the effect of changing the arc. = 0.1 BMapLib.changeRad ; lat3 = H2 * Math.sin, (T2) + + LAT1 BMapLib.changeRad; BMapLib.changeRad + = 0.1;