修改添加gsojson的isdefault,方便重置场景
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
|
||||
<!-- 显示信息框 -->
|
||||
|
||||
Reference in New Issue
Block a user