setShapeStyle, setCircleMarkerStyle and setCircleMarkerRadius (#496)#598
setShapeStyle, setCircleMarkerStyle and setCircleMarkerRadius (#496)#598edwindj wants to merge 3 commits intorstudio:mainfrom
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