Open Zzzzzhoukekkk opened 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);
辛苦帮忙看一下
https://lbs.baidu.com/jsdemo.htm#fEditOverlay
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);
辛苦帮忙看一下