Skip to content

Commit a7c802b

Browse files
author
Chris DeMartini
authored
Merge pull request #20 from keplergl/fix/hexgrid-interactive-v2
fix: bugfix on tableau interactivity for hex grid
2 parents 7524ff8 + c148406 commit a7c802b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/KeplerGL/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ function getHoverInfo(info, allData) {
6565
: // if hovered is a hexbbin, or grid, kepler.gl can return all the points inside that hexagon / grid
6666
objectHovered.type === 'Feature'
6767
? allData[objectHovered.properties.index]
68-
: objectHovered.points;
68+
// with upgrade to v2 we now need to the data sub-object for hex and grid layer
69+
: objectHovered.points.map(pt => {
70+
return pt.data;
71+
});
6972
}
7073

7174
class KeplerGlComponent extends Component {

0 commit comments

Comments
 (0)