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

Why not update_markers()? #250

Open
jaahumadap opened this issue May 13, 2022 · 1 comment
Open

Why not update_markers()? #250

jaahumadap opened this issue May 13, 2022 · 1 comment

Comments

@jaahumadap
Copy link

Using google_maps() in shiny and frequently need to update the markers on a map. Right now have to do:

google_map_update(map_id = "my_map") %>%
clear_markers() %>%
add_markers(data = new_data, id = location, lat = "lat", lon = "lon")

Is this in the pipeline for development? Thanks,

@dcooley
Copy link
Collaborator

dcooley commented May 15, 2022

I hadn't considered this as an option, but it makes sense to have an upate_markers() function as you suggest. And it should be a fairly simple wrapper around clear_ and add_, but in javascript rather than the R-side.

I'm not sure when I'll get around to implementing it though.

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