침수흔적도 목록/지도 상세 팝업 mock 구현 및 md 업데이트
This commit is contained in:
@@ -550,9 +550,13 @@ export default React.memo(function GisTree({
|
||||
(child) =>
|
||||
child.parent === node.id && child.data.exprsYn === "Y"
|
||||
);
|
||||
const nodeLabel = String(node?.data?.lyrNm ?? "").trim();
|
||||
const isSinkholeRootTreeNode =
|
||||
String(node.id) === "SN_SINKHOLE" ||
|
||||
String(node?.data?.lyrNm ?? "").trim() === "지반침하정보";
|
||||
nodeLabel === "지반침하정보";
|
||||
const isFloodHistoryRootTreeNode = nodeLabel === "침수흔적도";
|
||||
const hideTreeLegendIcon =
|
||||
isSinkholeRootTreeNode || isFloodHistoryRootTreeNode;
|
||||
const showLayerActionButton = layerIconVisible?.(node);
|
||||
const showLayerActionIcon = depth > 0 && imageVisible;
|
||||
|
||||
@@ -582,7 +586,7 @@ export default React.memo(function GisTree({
|
||||
onChange={() => handleCheck(node.id)}
|
||||
className="cursor-pointer"
|
||||
/>
|
||||
{!isSinkholeRootTreeNode && node.icon && <span>{node.icon}</span>}
|
||||
{!hideTreeLegendIcon && node.icon && <span>{node.icon}</span>}
|
||||
<span
|
||||
className="min-w-0 flex-1 truncate whitespace-nowrap text-[1.3rem] font-medium text-label"
|
||||
title={String(node.text ?? "")}
|
||||
|
||||
Reference in New Issue
Block a user