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

expose mouseover/mousemove events #82

Open
gagecarto opened this issue Sep 15, 2021 · 1 comment
Open

expose mouseover/mousemove events #82

gagecarto opened this issue Sep 15, 2021 · 1 comment

Comments

@gagecarto
Copy link

gagecarto commented Sep 15, 2021

It would be great to also have access to mousemove/mouseover events like onclick events. This would be especially helpful for triggering event or retrieving map feature data (circles, markers etc). Would these be relatively easy to expose given their availability in Mapbox GL JS?
https://docs.mapbox.com/mapbox-gl-js/api/map/#map.event:mousemove

Below is an example of an onclick event using Mapboxer.

output$feature <- renderText({ info <- input$map_onclick if (is.null(info)) return("<p>Click on a feature to show its details.</p>")

@crazycapivara
Copy link
Owner

Hi @gagecarto Yes, this is not a big issue, I just need to find some time to do so.

You can also use add_tooltips to show some details onmouseover for a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants