Merge remote-tracking branch 'origin/main' into dsz
This commit is contained in:
@@ -6,10 +6,11 @@
|
||||
<script lang="ts" setup>
|
||||
import { useAdministrativeDivision } from '@/hooks/map/useAdministrativeDivision';
|
||||
import { useLoadingResourceStore } from '@/stores/useLoadingResourceStore';
|
||||
import { useStatusStore } from '@/stores/useStatusStore';
|
||||
import { LoadingResource } from '@/types/common/LoadingResourceType';
|
||||
import { CesiumUtilsSingleton } from '@/utils/cesium/CesiumUtils';
|
||||
import { Color } from 'cesium';
|
||||
import { onMounted } from 'vue';
|
||||
import { onMounted, watch } from 'vue';
|
||||
|
||||
// 配置参数
|
||||
const { areas, areasId, areasColor, areaTransparency, labelTransparency } =
|
||||
@@ -49,6 +50,18 @@
|
||||
areasId
|
||||
);
|
||||
});
|
||||
|
||||
// 监听显示状态改变
|
||||
watch(
|
||||
() => useStatusStore().mapLayers.showAdministrativeDivision.show,
|
||||
(newValue: boolean) => {
|
||||
if (newValue) {
|
||||
CesiumUtilsSingleton.batchShowGeoJsonLayers(areasId);
|
||||
} else {
|
||||
CesiumUtilsSingleton.batchHideGeoJsonLayers(areasId);
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<div class="control-show-panel-box">
|
||||
<div
|
||||
class="control-show-panel-box"
|
||||
v-show="useStatusStore().uiComponents.controlPanel.show"
|
||||
>
|
||||
<div class="title-box">
|
||||
<header>控制显示</header>
|
||||
</div>
|
||||
@@ -20,6 +23,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useLoadingInformationStore } from '@/stores/useLoadingInformation.ts';
|
||||
import { useStatusStore } from '@/stores/useStatusStore';
|
||||
|
||||
defineProps<{
|
||||
constrolShowList: {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
v-show="useStatusStore().uiComponents.leftButton.show"
|
||||
class="left-button-box"
|
||||
:style="{
|
||||
left: `${useStatusStore().uiComponents.disasterChainPointShow.show ? 575 : 100}px`,
|
||||
|
||||
Reference in New Issue
Block a user