Skip to content

Commit

Permalink
Merge pull request #20 from keplergl/fix/hexgrid-interactive-v2
Browse files Browse the repository at this point in the history
fix: bugfix on tableau interactivity for hex grid
  • Loading branch information
Chris DeMartini authored Apr 14, 2020
2 parents 7524ff8 + c148406 commit a7c802b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/KeplerGL/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ function getHoverInfo(info, allData) {
: // if hovered is a hexbbin, or grid, kepler.gl can return all the points inside that hexagon / grid
objectHovered.type === 'Feature'
? allData[objectHovered.properties.index]
: objectHovered.points;
// with upgrade to v2 we now need to the data sub-object for hex and grid layer
: objectHovered.points.map(pt => {
return pt.data;
});
}

class KeplerGlComponent extends Component {
Expand Down

0 comments on commit a7c802b

Please sign in to comment.