-
Notifications
You must be signed in to change notification settings - Fork 176
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
Add interaction events #10
Comments
i would also include the ability to rotate the globe, seems even more important if location-based interaction stuff is added. |
I added some examples regarding this:
I think these example can help a lot here. And since this lib is a little bit low-level by its design, I’d like to keep it small but customizable with more examples added to the docs. |
Can't figure out how to make it draggable with Vanilla js |
@shuding hey, awesome work with Cobe. Thanks for this. Also, do you have any plan to add hoverable markers? or can you point me the right direction to implement it? |
@Nithur-M It's gonna be a bit tricky as currently everything is written in shader code, it's tricky to connect the globe coordinates to screen coordinates and mouse positions... I'll think about how we can implement that. |
Some pointers for people who want to contribute:
Markers need to be implemented as objects with their own shader (use a loop to add them after creating the Phenomenon object), instead of being rendered in the main globe shader. And then, implement some global event callbacks (pointer over, click, etc.). This will probably fix the #19 issue too! |
Would be nice to add click/hover events so that the globe can be used interactively.
A use case:
Thanks.
Ps. Awesome lib!
The text was updated successfully, but these errors were encountered: