Parcourir la source

新增船舶轨迹清除方法

sbj il y a 1 an
Parent
commit
7e10285b81
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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']})
 }