修复地图中 鼠标悬浮显示机器 优化显示登录用用户的角色
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user