vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.97k stars 293 forks source link

How to make the tooltip show and hide #157

Open chending1994 opened 1 year ago

chending1994 commented 1 year ago

Let the tooltip show or hide, without moving the mouse, how to trigger it image

vasturiano commented 1 year ago

The current tooltip is tied to pointer movement interactions so that's not really possible. Its location also follows the mouse pointer so you wouldn't really want to detach it from the pointer.

What you can do is overlay an element on top of the globe that shows the additional info.

chending1994 commented 1 year ago

The current tooltip is tied to pointer movement interactions so that's not really possible. Its location also follows the mouse pointer so you wouldn't really want to detach it from the pointer.

What you can do is overlay an element on top of the globe that shows the additional info.

get it, thank you

alexzborovskii commented 7 months ago

isn't this project using something you wanted? https://covidvisualizer.com/ also looking for the way they did it, but can't find it