Sfoglia il codice sorgente

新增船舶轨迹清除方法

sbj 1 anno fa
parent
commit
7e10285b81
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      src/utils/map/Boat.js

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

@@ -146,4 +146,11 @@ export function setBoatPath(data){
  */
 export function playBoatHistoryPath(type) {
     playBoatHistory(type)
+}
+
+/**
+ * 清除船舶轨迹
+ */
+export function clearBoatHistoryPath(){
+    clearMap({is_draw: false, is_search:true, layers: ['boatPathLayer']})
 }