Explorar o código

区域轨迹回放调整;

sbj hai 1 ano
pai
achega
7a8c972a7e
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/utils/map/Boat.js

+ 7 - 0
src/utils/map/Boat.js

@@ -165,8 +165,15 @@ export function clearBoatHistoryPath(){
 
 export function drawArea(startTime,endTime,isShow){
     draw('polygon');
+    let drawResult = getDrawResult()
+    while (!drawResult){
+        drawResult = getDrawResult()
+    }
+    setMultiBoatHistory(startTime,endTime);
 }
 
+
+
 export function setMultiBoatHistory(startTime,endTime){
     let drawResult = getDrawResult()
     GetShipHistoryByArea({