var start="116.399,39.910"
for(var i=0;i<1000;i++){
start+=(';'+(116.399+Math.random()*i/2000)+','+(39.910+Math.random()*i/2000))
}
var polyline = new BMap.Polyline("116.399,39.910;116.405,39.920;116.425,39.900", {strokeColor:"blue", strokeWeight:6, strokeOpacity:0.5});
map.addOverlay(polyline);
setTimeout(function(){polyline.setPath(start)},2000)
最后
以上就是谦让彩虹最近收集整理的关于百度地图 画线设置折线点 另一方法的全部内容,更多相关百度地图内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复