Drive map markers by data, not visibility
All checks were successful
Build Docker Image / build (push) Successful in 5m20s

This commit is contained in:
Ruslan Bakiev
2026-02-06 11:23:56 +07:00
parent 4bdefc9ce9
commit 1e761ca2a8
2 changed files with 8 additions and 40 deletions

View File

@@ -18,8 +18,7 @@
:map-id="mapId"
:items="isInfoMode ? [] : (useServerClustering ? [] : itemsWithCoords)"
:clustered-points="isInfoMode ? [] : (useServerClustering && !useTypedClusters ? clusteredNodes : [])"
:clustered-points-by-type="isInfoMode ? undefined : (useServerClustering && useTypedClusters ? clusteredPointsByType : undefined)"
:visible-types="useServerClustering && useTypedClusters ? visibleTypes : undefined"
:clustered-points-by-type="isInfoMode ? undefined : (useServerClustering && useTypedClusters ? clusteredPointsByType : undefined)"
:use-server-clustering="useServerClustering && !isInfoMode"
:point-color="activePointColor"
:entity-type="activeEntityType"
@@ -310,8 +309,6 @@ const activeClusterType = computed<'offer' | 'hub' | 'supplier'>(() => {
return 'offer'
})
const visibleTypes = computed(() => [activeClusterType.value])
const clusterLoading = computed(() => {
if (!useTypedClusters.value) return singleClusterLoading.value
if (activeClusterType.value === 'hub') return hubClusters.loading.value