Fix map points: icons, color updates, loading state
All checks were successful
Build Docker Image / build (push) Successful in 3m41s
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:
@@ -44,9 +44,14 @@ export function useClusteredNodes(
|
||||
}
|
||||
}
|
||||
|
||||
const clearNodes = () => {
|
||||
clusteredNodes.value = []
|
||||
}
|
||||
|
||||
return {
|
||||
clusteredNodes,
|
||||
loading,
|
||||
fetchClusters
|
||||
fetchClusters,
|
||||
clearNodes
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user