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

    map.draw({
      type: 'rectangle',
      start() {
        console.log("开始绘制")
      },
      draw() {console.log("绘制")},
      end() {}
    })
  }
}
