Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bugfix on tableau interactivity for hex grid #20

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

demartsc
Copy link
Collaborator

This simple update re-enables the interactivity to tableau for hex and grid layers (I hope).

Signed-off-by: Chris DeMartini <chris@datablick.com>
@@ -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 => {
Copy link
Collaborator

@heshan0131 heshan0131 Mar 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be a filteredPoints property, that the filtered data. but it is not always defined. It is only there when there is gpu filter. try apply a numeric filter and see if filteredPoints is the correct one to use

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to separate out the enhancement for new selection tool/filtering via this issue/request #22. This PR will be scoped to only fixing the broken functionality around integration with points and/or aggregated marks (e.g., hex layer).

@demartsc demartsc merged commit a7c802b into master Apr 14, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/hexgrid-interactive-v2 branch April 14, 2020 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants