baidu地图api使用
作者:互联网
var stra = '120.23026600569044:30.31146623753541,120.23026600569044:30.31146623753541'; var strarr = stra.split(','); var polylineTmp = new Array(); for (var i = 0; i < strarr.length; i++) { var one = strarr[i].split(':'); polylineTmp[i] = new BMap.Point(one[0], one[1]); }
http://lbsyun.baidu.com/jsdemo.htm#c2_1
就可以使用这个画线的api
标签:baidu,120.23026600569044,strarr,地图,api,split,var 来源: https://www.cnblogs.com/zhucezmf/p/12506141.html