diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index 8b7c7e6..2343b66 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -39,7 +39,7 @@ function sphericalAreaKm2(polys) { // 生成便签 canvas:黄底圆角 + 左侧箭头 + 黑色加粗文字(整张图,箭头尖端指向坐标) function makeStickyNote(text, fontSize, selected = false) { - const padX = 14, padY = 8, radius = 8, arrowW = 12, arrowH = 16, S = 2; // S: 2x 超采样 + const padX = 10, padY = 6, radius = 8, arrowW = 12, arrowH = 16, S = 2; // S: 2x 超采样 const font = `bold ${fontSize}px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif`; const m = document.createElement('canvas'); const mctx = m.getContext('2d'); @@ -73,7 +73,7 @@ function makeStickyNote(text, fontSize, selected = false) { ctx.arcTo(arrowW, h, arrowW, h - radius, radius); // 左下圆角 ctx.lineTo(arrowW, h / 2 + arrowH / 2); // 左边缘下部 ctx.closePath(); // 闭合回箭头尖端 - ctx.fillStyle = '#FFF9A6'; + ctx.fillStyle = '#e0c46a'; ctx.fill(); // 选中时加黑边