export default {
  name: '绘制折线',
  codeHtml: `
  this.$refs['LayerMap'].draw()
  `,
  apiHtml: [],
  apiString: `
    draw() {}:绘制
  `,
  action(map) {

    map.draw({
      type: 'polyline',
      start() {
        console.log("合并000")
      },
      draw() {},
      end(entity) {
        console.log(JSON.stringify(entity.positions))
      }
    })
  }
}
