feat: update map, admin to and cache
This commit is contained in:
@@ -448,6 +448,22 @@ const StationLabel = observer(
|
||||
anchor={dynamicAnchor}
|
||||
zIndex={isHovered || isControlHovered ? 1000 : 0}
|
||||
>
|
||||
{ruLabelWidth > 0 && (
|
||||
<pixiGraphics
|
||||
draw={(g: Graphics) => {
|
||||
g.clear();
|
||||
const hasSecondLabel = !!(station.name && language !== "ru" && ruLabel);
|
||||
const pad = 10 / scale;
|
||||
const w = ruLabelWidth + pad * 2;
|
||||
const top = -compensatedRuFontSize / 2 - pad;
|
||||
const bottom = hasSecondLabel
|
||||
? compensatedRuFontSize * 1.1 + compensatedNameFontSize / 2 + pad
|
||||
: compensatedRuFontSize / 2 + pad;
|
||||
g.rect(-w / 2, top, w, bottom - top);
|
||||
g.fill({ color: 0x000000, alpha: 0.001 });
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{ruLabel && (
|
||||
<pixiText
|
||||
ref={ruLabelRef}
|
||||
|
||||
Reference in New Issue
Block a user