Fix map points: icons, color updates, loading state
All checks were successful
Build Docker Image / build (push) Successful in 3m41s

- Add entityType prop to CatalogMap for icon selection
- Change circle layers to symbol layers with entity-specific icons
- Icons: shopping bag (offers), warehouse (hubs), factory (suppliers)
- Add watcher to update colors when pointColor/entityType changes
- Clear old points and show loading indicator when switching view modes
- Add clearNodes function to useClusteredNodes composable
This commit is contained in:
Ruslan Bakiev
2026-01-24 09:18:27 +07:00
parent 63d81ab42f
commit 5e55443975
3 changed files with 148 additions and 23 deletions

View File

@@ -44,9 +44,14 @@ export function useClusteredNodes(
}
}
const clearNodes = () => {
clusteredNodes.value = []
}
return {
clusteredNodes,
loading,
fetchClusters
fetchClusters,
clearNodes
}
}