Browse Source

绘制内容结算0119

zhiyuan-007 21 hours ago
parent
commit
2f0b133754
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/components/mapJK.vue

+ 10 - 0
src/components/mapJK.vue

@@ -1840,6 +1840,16 @@ export default {
         }
         if(path){
           addDrawEvent.update();
+          bus.emit('SendMessage',{
+            action:"DrawComplete",
+            data:{
+              "geometry":{
+                type: "polyline",
+                paths: [path], // 示例路径坐标
+                spatialReference: m_view.spatialReference,
+              }
+            }
+          })
         }else{
           addDrawEvent.start(symbol,geometryType);
         }