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

Map does not show up in SuperZip #189

Open
cbologa opened this issue Nov 11, 2020 · 1 comment
Open

Map does not show up in SuperZip #189

cbologa opened this issue Nov 11, 2020 · 1 comment

Comments

@cbologa
Copy link

cbologa commented Nov 11, 2020

https://shiny.rstudio.com/gallery/superzip-example.html

Might be related to

https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4

@tulha
Copy link

tulha commented Jan 20, 2021

Yes, the map template is no longer available at the link referenced in the code. The fix is simple though:

Replace the following code in the server.R file:

output$map <- renderLeaflet({
  leaflet() %>%
   addTiles(
    urlTemplate = "//{s}.tiles.mapbox.com/v3/jcheng.map-5ebohr46/{z}/{x}/{y}.png",
    attribution = 'Maps by <a href="http://www.mapbox.com/">Mapbox</a>'
    ) %>%
     setView(lng = -93.85, lat = 37.45, zoom = 4)
 })

With:

output$map <- renderLeaflet({
 leaflet() %>%
  addTiles() %>%
   setView(lng = -93.85, lat = 37.45, zoom = 4)
})

This fix should work.

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