Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Cluster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
): H.clustering.ITheme {
return {
getClusterPresentation: (cluster) => {
console.log('getClusterPresentation')
const clusterPoints: T[] = []
cluster.forEachDataPoint((point) => clusterPoints.push(point.getData()))
return new H.map.Marker(cluster.getPosition(), {
Expand All @@ -72,6 +73,7 @@
})
},
getNoisePresentation: (point) => {
console.log('getNoisePresentation')
const data: T = point.getData()
return new H.map.Marker(point.getPosition(), {
data,
Expand Down Expand Up @@ -129,13 +131,15 @@
})
provider.addEventListener('tap', onClick)
return provider
}, [clusteringOptions, onClick])

Check warning on line 134 in src/Cluster.tsx

View workflow job for this annotation

GitHub Actions / lint

React Hook useMemo has missing dependencies: 'datapoints' and 'theme'. Either include them or remove the dependency array

useEffect(() => {
console.log('Setting theme')
clusteredDataProvider.setTheme(theme)
}, [theme, clusteredDataProvider])

useEffect(() => {
console.log('Setting data points')
clusteredDataProvider.setDataPoints(datapoints)
}, [datapoints, clusteredDataProvider])

Expand Down
Loading