feat(catalog): focus map during quote search
All checks were successful
Build Docker Image / build (push) Successful in 4m47s

This commit is contained in:
Ruslan Bakiev
2026-02-06 20:07:43 +07:00
parent 2d85e7187e
commit aa7790f45e
2 changed files with 68 additions and 4 deletions

View File

@@ -18,7 +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)"
:clustered-points-by-type="isInfoMode ? undefined : (useServerClustering && useTypedClusters ? clusteredPointsByType : undefined)"
:use-server-clustering="useServerClustering && !isInfoMode"
:point-color="activePointColor"
:entity-type="activeEntityType"
@@ -255,6 +255,7 @@ const props = withDefaults(defineProps<{
showPanel?: boolean
filterByBounds?: boolean
infoLoading?: boolean
forceInfoMode?: boolean
panelWidth?: string
hideViewToggle?: boolean
relatedPoints?: Array<{
@@ -275,6 +276,7 @@ const props = withDefaults(defineProps<{
showPanel: false,
filterByBounds: false,
infoLoading: false,
forceInfoMode: false,
panelWidth: 'w-96',
hideViewToggle: false,
relatedPoints: () => []
@@ -364,7 +366,7 @@ const selectedMapItem = ref<MapItem | null>(null)
const mobilePanelExpanded = ref(false)
// Info mode - when relatedPoints are present, hide clusters and show only related points
const isInfoMode = computed(() => props.relatedPoints && props.relatedPoints.length > 0)
const isInfoMode = computed(() => props.forceInfoMode || (props.relatedPoints && props.relatedPoints.length > 0))
// Hovered item with coordinates for map highlight
const hoveredItem = computed(() => {