Pārlūkot izejas kodu

ws时,删除最后一个实时轨迹,会清空图层问题

CzRger 1 mēnesi atpakaļ
vecāks
revīzija
8448967cd5
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/stores/ship-map/ship-map.ts

+ 1 - 0
src/stores/ship-map/ship-map.ts

@@ -127,6 +127,7 @@ export const useShipMapStore = defineStore('shipMap', () => {
               state.ws.instance = null
               state.map.removeLayer(state.ws.layerShip)
               state.ws.layerShip = null
+              switchZoom()
             } else {
               initWebSocket()
             }