huiyan-fe / react-bmapgl

基于百度地图JavaScript GL版API封装的React组件库
http://huiyan.baidu.com/github/react-bmapgl/
MIT License
114 stars 20 forks source link

绘制polyline时,存在没有连线的点 #83

Open Zzzzzhoukekkk opened 4 months ago

Zzzzzhoukekkk commented 4 months ago

map.addOverlay(new BMapGL.Marker(new BMapGL.Point(116.40432315282534,39.89288042490572))) map.addOverlay(new BMapGL.Marker(new BMapGL.Point(116.40419509683154,39.89287689968862))) map.addOverlay(new BMapGL.Marker(new BMapGL.Point(116.4047079608473, 39.89288400949964))) // 绘制线 var polyline = new BMapGL.Polyline([ new BMapGL.Point(116.40432315282534,39.89288042490572), new BMapGL.Point(116.40419509683154,39.89287689968862), new BMapGL.Point(116.4047079608473, 39.89288400949964) ], { strokeStyle: 'dashed', strokeColor: 'blue', strokeTexture: { url: 'https://mapopen-pub-jsapigl.bj.bcebos.com/svgmodel/Icon_road_blue_arrow.png', width: 16, height: 64 }, strokeWeight: 8, strokeOpacity: 0.8, node: node }); map.addOverlay(polyline);

问题

辛苦帮忙看一下

Zzzzzhoukekkk commented 4 months ago

https://lbs.baidu.com/jsdemo.htm#fEditOverlay