Skip to content

Multiple hotspots to an image #1567

Answered by sungryeol-bigpi
dpomazanov asked this question in Q&A
Discussion options

You must be logged in to vote

it won't work like that. it seems the demo reactively shows only one background & hotspot at a time, which has corresponding number on .link property.

I've added another hotspot as requested. you'll see the structure of state has been changed in order to display what's mentioned above. it's not about r3f, you may need to understand how the react works first.
https://codesandbox.io/s/sky-dome-with-annotations-forked-c5gmn?file=/src/index.js

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dpomazanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants