lnglat类型数据怎么转换
1个回答
展开全部
var polyline = new BMap.Polyline([
new BMap.Point(lng1,lat1)//起始点的经纬度
new BMap.Point(lng2,lat2)//终止点的经纬度
], {strokeColor:"red",//设置颜色
strokeWeight:3, //宽度
strokeOpacity:0.5});//透明度
map.addOverlay(polyline);
new BMap.Point(lng1,lat1)//起始点的经纬度
new BMap.Point(lng2,lat2)//终止点的经纬度
], {strokeColor:"red",//设置颜色
strokeWeight:3, //宽度
strokeOpacity:0.5});//透明度
map.addOverlay(polyline);
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询