标记便签改为 DOM 覆盖层,修复近距离缩放漂移

This commit is contained in:
2026-09-19 02:25:05 +08:00
parent 41d68e087a
commit fade9eedc2
2 changed files with 70 additions and 39 deletions
+14
View File
@@ -37,6 +37,20 @@ html, body {
/* 隐藏左下角全部归属信息(Cesium ion logo + 影像文字) */
#cesium-container .cesium-widget-credits { display: none !important; }
/* 标记便签 DOM 覆盖层(在 Cesium 画布之上) */
#marker-layer {
position: absolute; inset: 0; z-index: 20;
pointer-events: none;
}
.marker-note {
position: absolute;
pointer-events: auto;
background-repeat: no-repeat;
background-size: 100% 100%;
transform: translateY(-50%);
cursor: pointer;
}
/* 气氛遮罩 */
.vignette {
position: absolute; inset: 0; pointer-events: none;