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

update_polylines() does not have any impact. Ref. example in package document #277

Open
sanjmeh opened this issue Dec 25, 2024 · 2 comments

Comments

@sanjmeh
Copy link

sanjmeh commented Dec 25, 2024

df <- tram_route
df$id <- c(rep(1, 27), rep(2, 28))
df$colour <- c(rep("#00FFFF", 27), rep("#FF00FF", 28))
df_update <- data.frame(id = c(1,2),
                        width = c(3,10),
                        colour = c("#00FF00", "#DCAB00"))

google_map(key = map_key) %>% 
add_polylines(data = df, lat = 'shape_pt_lat', lon = 'shape_pt_lon', 
stroke_colour = "colour", id = 'id') %>% 
update_polylines(data = df_update, id = 'id', stroke_weight = "width", stroke_colour = 'colour')

In the above example the update_polylines() does not have any impact.

@dcooley
Copy link
Collaborator

dcooley commented Dec 25, 2024

from ?update_polylines

Designed to be used in a shiny application.

Is your example part of a shiny app?

@sanjmeh
Copy link
Author

sanjmeh commented Dec 25, 2024

Is your example part of a shiny app?

I will confirm shortly.

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