|
@@ -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);
|
|
|
}
|