-
When we get the object from a FlowmapLayerPickingInfo object, we can not see all the building blocks of the picked object at the highest granularity. I can see the children but those children themselves might have other children. Is there any function that wen can call and gives us all the nodes that creating a clustered node or the origins/destination of a clustered link? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Yes, I think what you are looking for is You should be able to get access to the clusterIndex in a click/hover listener by calling |
Beta Was this translation helpful? Give feedback.
-
@ilyabo sorry for resurrecting this old thread, but is this still the recommended approach? When I try to call the following: onClick: (e) => {
console.log(e.layer.state.dataProvider.getSelectors().getClusterIndex())
}, I get: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'flows')
at FlowmapSelectors.getFlowsFromProps (@flowmap__gl_layers.js?v=18610e13:3584:54)
at dependenciesChecker (@flowmap__gl_layers.js?v=18610e13:2995:37)
at memoized (@flowmap__gl_layers.js?v=18610e13:2930:20)
at dependenciesChecker (@flowmap__gl_layers.js?v=18610e13:2995:37)
at memoized (@flowmap__gl_layers.js?v=18610e13:2930:20)
at dependenciesChecker (@flowmap__gl_layers.js?v=18610e13:2995:37)
at memoized (@flowmap__gl_layers.js?v=18610e13:2930:20)
at dependenciesChecker (@flowmap__gl_layers.js?v=18610e13:2995:37)
at FlowmapSelectors.memoized [as getClusterIndex] (@flowmap__gl_layers.js?v=18610e13:2930:20)
at onClick (Map.vue:120:71) What am I missing here? When I log |
Beta Was this translation helpful? Give feedback.
Yes, I think what you are looking for is
ClusterIndex.expandCluster()
You should be able to get access to the clusterIndex in a click/hover listener by calling
flowmapLayer.state?.dataProvider.getSelectors().getClusterIndex()
.