Bootstrap

高德地图编辑多边形事件监听

  //监听坐标点的变化
      // polylineEditor.on("addnode", function (event) {
      //   console.log(event, event.target.getPath());
      //   let path = event.target.getPath();
      //   for (const item of path) {
      //     console.log(item.lng, item.lat);
      //   }
      // });
      //监听拖动变化
      // polylineEditor.on("adjust", function (event) {
      //   console.log(event, "1",event.target.getPath());
      // });
      //监听编辑多边形结束
          that.polygonEditor.on("end", function (event) {
        let getPath = event.target.getPath();
        console.log(getPath);
        saveRail = getPath;
      });
;