Fix map clusters: use Apollo client, remove flyTo on hover
All checks were successful
Build Docker Image / build (push) Successful in 4m48s

This commit is contained in:
Ruslan Bakiev
2026-01-14 11:50:39 +07:00
parent 46f8e97ee9
commit c458f851dc
2 changed files with 2 additions and 17 deletions

View File

@@ -10,7 +10,7 @@ export interface MapBounds {
}
export function useClusteredNodes(transportType?: Ref<string | undefined>) {
const { $geoClient } = useNuxtApp()
const { client } = useApolloClient('publicGeo')
const clusteredNodes = ref<ClusterPointType[]>([])
const loading = ref(false)
@@ -18,7 +18,7 @@ export function useClusteredNodes(transportType?: Ref<string | undefined>) {
const fetchClusters = async (bounds: MapBounds) => {
loading.value = true
try {
const { data } = await $geoClient.query({
const { data } = await client.query({
query: GetClusteredNodesDocument,
variables: {
west: bounds.west,