-
Notifications
You must be signed in to change notification settings - Fork 507
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
setShapeStyle, setCircleMarkerStyle and setCircleMarkerRadius (#496) #598
base: main
Are you sure you want to change the base?
Conversation
Current travis warning is not due to PR (which does nothing with map-shiny.Rd or shiny.R), but to roxygen2 inheritsParams htmlwidgets::shinyWidgetOutput which generates a invalid |
|
Any news on this? |
Maybe the wrong place to post this, but @edwindj I'm using leafgl to plot ~35k line segments. Implementing your solution directly (as in #496) works perfectly for a layer built using leaflet::addPolyLines but not for one built using leafgl::addGlPolyLines. Any advice? Reprex below: library(shiny) data <- gadmCHE %>% setShapeStyle <- function( map, data = getMapData(map), layerId, evaluate all optionsoptions <- evalFormula(options, data = data) make them the same length (by building a data.frame)options <- do.call(data.frame, c(options, list(stringsAsFactors=FALSE))) layerId <- options[[1]] #print(list(style=style)) ui <- fluidPage( //convert columnstore to row store layerId.forEach(function(d,i){ server <- function(input, output, session){ output$glMap <- renderLeaflet({ observe({ observe({ } shinyApp(ui, server) |
I have added three new methods that allow for style changes of already rendered choropleths and circlemarkers. Its usage is typically with leafletproxy in shiny and is a fix for issue #496.
Example
A minimal example is included in inst/examples/setStyle.R