mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-08-26 20:32:32 +02:00
fix: restore CCTV and Telegram map visibility
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user