@@ -24,8 +24,8 @@ const BUBBLE_PADDING = 8
2424const BUBBLE_WIDTH = 160
2525const BUBBLE_HEIGHT = 56
2626
27- const { mapInstance, flyTo, viewCenter, zoom } = useMapControls ()
28- const { locationCount, clusterCount } = useVisibleLocations ()
27+ const { mapInstance, flyTo, viewCenter } = useMapControls ()
28+ useVisibleLocations ()
2929const { width : windowWidth, height : windowHeight } = useWindowSize ()
3030
3131// Fetch country counts (cached)
@@ -41,10 +41,6 @@ const markers = new Map<CountryCode, Marker>()
4141// Hide bubbles during fly animation
4242const isFlying = ref (false )
4343
44- // At zoom 9+, individual location pins are visible - never show bubbles
45- // This prevents race condition where queryRenderedFeatures returns 0 while tiles are loading on slow devices
46- const MIN_ZOOM_FOR_PINS = 9
47-
4844// Check if a point is within current map viewport
4945function isPointInViewport(point : { lat: number , lng: number }): boolean {
5046 if (! mapInstance .value )
@@ -97,8 +93,8 @@ const showBubbles = computed(() => {
9793 if (isFlying .value )
9894 return false
9995
100- // Touch reactive deps to trigger re-evaluation when map moves
101- // eslint-disable-next-line no-unused-expressions
96+ // Touch reactive dep to trigger re-evaluation when map moves
97+ // eslint-disable-next-line ts/ no-unused-expressions
10298 viewCenter .value
10399
104100 // Only show bubbles when outside ALL country bounds
0 commit comments