修复地图中 鼠标悬浮显示机器 优化显示登录用用户的角色

This commit is contained in:
mmc
2026-08-31 14:16:36 +08:00
parent b5916dd408
commit 9212b45ece
2 changed files with 26 additions and 11 deletions

View File

@@ -2022,17 +2022,27 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
captureScreenshot
}));
return <>
<div ref={containerRef} className="w-full h-full bg-slate-900 overflow-hidden" />
<div
ref={tooltipRef}
style={{
position: "absolute", display: "none", pointerEvents: "none",
background: "rgba(0,0,0,0.75)", color: "#fff", padding: "8px 10px",
borderRadius: "4px", fontSize: "12px", zIndex: 9999, whiteSpace: "nowrap"
}}
/>
</>;
return (
<div className="w-full h-full bg-slate-900 overflow-hidden relative">
<div ref={containerRef} className="w-full h-full overflow-hidden" />
<div
ref={tooltipRef}
style={{
position: "absolute",
display: "none",
pointerEvents: "none",
background: "rgba(0,0,0,0.75)",
color: "#fff",
padding: "8px 10px",
borderRadius: "4px",
fontSize: "12px",
zIndex: 99999,
whiteSpace: "nowrap",
}}
/>
</div>
);
});
export default CesiumMap;