修改添加gsojson的isdefault,方便重置场景

This commit is contained in:
wzy-warehouse
2026-04-14 17:05:27 +08:00
parent d6f488bb3e
commit df1fb2aea3
8 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -19,9 +19,9 @@
const layerConfigs = areasId.map((id, index) => ({
layerId: id,
geojsonData: areas[index],
isDefault: true,
options: {
showName: true,
isDefault: true,
labelStyle: {
labelText: areas[index].features[0].properties.name,
center: [
@@ -10,6 +10,7 @@
:get-disaster-icon="getDisasterIcon"
:prefix="config.prefix.hiddenDangerPointId"
:show-points="useStatusStore().getHiddenDangerPointShow()"
:is-default="true"
/>
<!-- 显示信息框 -->
@@ -15,6 +15,7 @@
getDisasterIcon: (disasterType?: string) => string;
prefix: string;
showPoints: boolean;
isDefault?: boolean;
}>();
// 点处理钩子
@@ -25,7 +26,8 @@
const ids: string[] = pointsHandle.addPoints(
props.basePoints,
props.getDisasterIcon,
props.prefix
props.prefix,
props.isDefault
);
// 显示隐藏点
@@ -8,6 +8,7 @@
:get-disaster-icon="getDisasterIcon"
:prefix="config.prefix.riskPointId"
:show-points="useStatusStore().getRiskPointShow()"
:is-default="true"
/>
<!-- 显示信息框 -->