规范化操作
This commit is contained in:
@@ -2,11 +2,10 @@ import { ref } from 'vue';
|
||||
import type { XianHiddenDangerSpots } from '@/types/base/XianHiddenDangerSpots';
|
||||
import type { PaginationType } from '@/types/common/PaginationType';
|
||||
import { PointType } from '@/types/common/DisasterType';
|
||||
import { CesiumUtilsSingleton } from '@/utils/cesium/CesiumUtils';
|
||||
import config from '@/config/config.json';
|
||||
import { useStatusStore } from '@/stores/useStatusStore';
|
||||
import { useLayerControl } from '../useLayerControl';
|
||||
import { debrisFlowIcon, landslideIcon, riskAreaIcon } from '@/assets';
|
||||
import { useRightHandle } from '../useRightHandle';
|
||||
|
||||
/**
|
||||
* 暴雨灾害链
|
||||
@@ -159,18 +158,12 @@ export const useEarthquakeDisasterChain = () => {
|
||||
},
|
||||
{
|
||||
name: '清除模拟',
|
||||
callback: () => {
|
||||
CesiumUtilsSingleton.clearAllResources('custom');
|
||||
},
|
||||
callback: () => useRightHandle().resetScene(),
|
||||
executeOnce: true,
|
||||
},
|
||||
{
|
||||
name: '视角重置',
|
||||
callback: () => {
|
||||
CesiumUtilsSingleton.flyToTarget(
|
||||
config.defaultPosition as [number, number, number]
|
||||
);
|
||||
},
|
||||
callback: () => useRightHandle().resetView(),
|
||||
executeOnce: true,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user