I am in the process of setting up an interactive world map on a curved plane that allows users to rotate and highlight countries. Upon clicking on a specific country, I am able to identify the selection and display a tooltip with relevant information about the chosen country, similar to what is shown in the screenshot linked below:
https://i.sstatic.net/ZhBtb.jpg
The map itself is generated in three dimensions, while the tooltip is represented using a basic div element. My goal is for the tooltip to remain fixed at the exact location of the selected point on the texture, even when the plane is rotated. Initially, the position of the tooltip is determined by data from the raycaster. Therefore, I would like the application to provide the current coordinates of that precise point relative to the container (or window), possibly based on UV coordinates. How can this functionality be achieved?