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

Documentation on how to use leaf_sf_col in Shiny #454

Open
filipwastberg opened this issue Sep 19, 2022 · 0 comments
Open

Documentation on how to use leaf_sf_col in Shiny #454

filipwastberg opened this issue Sep 19, 2022 · 0 comments

Comments

@filipwastberg
Copy link

Hi there!

Thanks for this wonderful package.

When trying to use leaf_sf* in Shiny no map appears. I'm not sure why that is and I haven't been able to find a solution in the documentation. So this issue is 1) how do you solve this 2) where should documentation for this go?

library(shiny)
library(leaflet)
library(simplevis)
library(stars)

ui <- fluidPage(
  leafletOutput("mymap"),
  p()
)

server <- function(input, output, session) {
  
  output$mymap <- renderLeaflet({
    leaf_sf_col(example_point, 
                col_var = trend_category)
  })
}

shinyApp(ui, server)
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

1 participant