baeolophus / TAGS_shiny_version

recreating geolocator data processing service TAGS in R shiny
GNU Affero General Public License v3.0
1 stars 1 forks source link

Not getting any map tiles from generated map #12

Open dannymandel opened 1 month ago

dannymandel commented 1 month ago

I'm trying to generate a map with light data from a .csv file. I can see that the map has the points on it, but the tiles are missing. When I look in the Safari console I see a bunch of 500 errors that look like this:

 Failed to load resource: the server responded with a status of 500 (Domain Not Found)
https://stamen-tiles-b.a.ssl.fastly.net/toner-lite/0/-1/0@2x.png

And the map looks like this:

image
dannymandel commented 1 month ago

I should add that this is on the deployed site at https://tags.shinyapps.io/tags_shiny/

dannymandel commented 1 month ago

It looks like maybe the leaflet provider got renamed?

diff --git a/TAGS_shiny/app.R b/TAGS_shiny/app.R
index 617e065..93ac78e 100644
--- a/TAGS_shiny/app.R
+++ b/TAGS_shiny/app.R
@@ -716,7 +716,7 @@ server <- function(input, output, session) {
        #run the leaflet function
        leaflet() %>%
          #add map tiles
-         addProviderTiles(provider = "Stamen.TonerLite",
+         addProviderTiles(provider = "Stadia.StamenTonerLite",
                          options = providerTileOptions(noWrap = TRUE)
          ) %>%
          #add the calculated coordinates based on edited twilights
baeolophus commented 4 weeks ago

Oh dang. Thanks for catching that. I am swamped right now - I can put this in my queue but it may be a bit, or if you want to put in a pull request I can approve it. Maybe next time I have more time (usually end of fall semester before winter break) I can put in a "choose map provider" option.