Skip to content

Real-time dashboard for monitoring global news, markets, and geopolitical events

TypeScript

Fix map view switching not rendering

Reggieb0eda111b150
diff --git a/js/map.js b/js/map.js
index c41ac3c..6292b28 100644
--- a/js/map.js
+++ b/js/map.js
@@ -87,7 +87,8 @@ export function setMapView(mode, refreshCallback) {
mapViewMode = mode;
mapZoom = 1;
mapPan = { x: 0, y: 0 };
- if (window.cachedAllNews && refreshCallback) {
+ // Always call refresh callback to re-render the map with new projection
+ if (refreshCallback) {
refreshCallback();
}
}