#
vincentlu
2025-12-12 bbe325f4602ce66c08d6280b75f895778232d1c4
#
1个文件已修改
12 ■■■■ 已修改文件
zy-acs-flow/src/map/tool.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/tool.js
@@ -903,14 +903,14 @@
    fetchAreaList(curZone).then((areas) => {
        areas.forEach((area) => {
            const { name, color, id } = area || {};
            const start = area?.start || (area?.startX != null ? { x: area.startX, y: area.startY } : null);
            const end = area?.end || (area?.endX != null ? { x: area.endX, y: area.endY } : null);
            if (!start || !end || !name) {
            const start = area?.start;
            const end = area?.end;
            if (!start || !end || !name || !id) {
                return;
            }
            const g = createAreaGraphic({ name, start, end, color, id });
            if (g) {
                mapContainer.addChild(g);
            const graphics = createAreaGraphic({ name, start, end, color, id });
            if (graphics) {
                mapContainer.addChild(graphics);
            }
        });
    });