Explorar el Código

新增船舶轨迹清除方法

sbj hace 1 año
padre
commit
7e10285b81
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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']})
 }