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

Tooltip not Working When Exporting Map HTML [Bug] #2528

Open
margootje123 opened this issue Feb 21, 2024 · 4 comments
Open

Tooltip not Working When Exporting Map HTML [Bug] #2528

margootje123 opened this issue Feb 21, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@margootje123
Copy link

Describe the bug
I am running the Kepler GL Demo Locally. I have saved the HTML and then opened from my own folder. When opening the HTML locally, the tooltip function does not work. Not when I click on data on the map, and also not when I hover over the data on the map.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Share, Export Map, HTML, Allow users to edit map, and Export
  2. Click on downloaded HTML in download folder
  3. Hover over datapoints on map
  4. Nothing happens

Expected behavior
I expect the tooltip to pop up when hovering over the datapoints on the map.

Desktop:

  • Browser Chrome and Edge tried both
  • Version 3.0.0
image
@margootje123 margootje123 added the bug Something isn't working label Feb 21, 2024
@AndriusGeo
Copy link

AndriusGeo commented Feb 26, 2024

I just want to confirm that I also reproduce this error (windows 11, Chrome). Tooltips not working when map is exported as HTML.

I found a workaround and probably the cause of the problem. In HTML you can try to change kepler.gl version to older one (I tried 2.5.5) and for me tooltips started working:
image

Of course, this is by no means a workaround, but it does confirm (as far as I understand) that the bug is present in version 3.0.0. Maybe this will help in further investigating the error.

@margootje123
Copy link
Author

@AndriusGeo Thanks so much! Changing the version indeed resolved the issue for me as well. Seems to be a bug then with the latest version, fingers crossed this gets updated some time soon.

@dafnikaravola
Copy link

Hey, I'm facing the same issue with @margootje123 (tried both Chrome & Opera), but the issue does not resolve with @AndriusGeo trick. Any other ideas?

@liuwo23
Copy link
Contributor

liuwo23 commented Mar 13, 2024

I found the issue is due to React version

Hey, I'm facing the same issue with @margootje123 (tried both Chrome & Opera), but the issue does not resolve with @AndriusGeo trick. Any other ideas?

This bug is caused by the inconsistency between the React version used in the project and the React version in the HTML template. I can fix it. Can someone review and approve the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants