fix: restore CCTV and Telegram map visibility

This commit is contained in:
BigBodyCobain
2026-08-23 19:28:40 -06:00
parent ae87fc6bfb
commit 2461756da4
5 changed files with 60 additions and 3 deletions
@@ -88,6 +88,19 @@ describe('MaplibreViewer behavior — CCTV proxy wiring', () => {
});
});
describe('MaplibreViewer behavior — Telegram visibility fallback', () => {
const viewer = fs.readFileSync(path.join(COMP_DIR, 'MaplibreViewer.tsx'), 'utf-8');
it('keeps a visible MapLibre fallback while HTML pins are temporarily hidden', () => {
const telegramSection = viewer.slice(
viewer.indexOf('<Source id="telegram-osint-source"'),
viewer.indexOf('</Source>', viewer.indexOf('<Source id="telegram-osint-source"')) + '</Source>'.length,
);
expect(telegramSection).toContain('minzoom={2}');
expect(telegramSection).toContain("'circle-opacity': 0.65");
});
});
// ─── Popup subscription isolation ─────────────────────────────────────────
describe('MaplibreViewer behavior — popup components have no keyed subscriptions', () => {
+5 -3
View File
@@ -3856,7 +3856,7 @@ const MaplibreViewer = ({
<Layer
id="telegram-osint-layer"
type="circle"
minzoom={4}
minzoom={2}
paint={{
'circle-radius': [
'interpolate',
@@ -3870,9 +3870,11 @@ const MaplibreViewer = ({
['case', ['>', ['get', 'post_count'], 1], 26, 22],
],
'circle-color': '#ef4444',
'circle-stroke-width': 0,
'circle-stroke-width': 1,
'circle-stroke-color': '#fca5a5',
'circle-opacity': 0,
// Keep a visible MapLibre fallback while the HTML pins are
// temporarily suppressed during map interaction.
'circle-opacity': 0.65,
}}
/>
</Source>