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

Stamen migration to Stadia Maps (+ add new styles) #351

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

ianthetechie
Copy link
Contributor

Before you open your PR

  • Did you run R CMD CHECK?
  • Did you run roxygen2::roxygenise(".")?

Description

Reflects that Stamen map tiles are now hosted by Stadia Maps. The old endpoints will start showing warning tiles sometime in September before being shut off on October 31, 2023.

Closes #350.

@ianthetechie
Copy link
Contributor Author

Just a quick bump on this, as we plan to start brownouts toward the end of September to let people know to switch over. It would be great to have ggmap updated.

@ianthetechie
Copy link
Contributor Author

Bump @dkahle?

@dkahle
Copy link
Owner

dkahle commented Oct 10, 2023

This is great, thanks @ianthetechie. Is there a reason why you removed get_stamenmap() completely instead of just adding get_stadiamap()? I would think it preferable to simply make the latter in addition to the former, .Deprecated() it (if that's still relevant at this point, which it appears to be), and when the former stops working .Defunct() it and point to get_stadiamap(). Thoughts?

@ianthetechie
Copy link
Contributor Author

Good question @dkahle. To be completely honest this is the first time I've written anything in R in like 8 years, so I don't know what the generally accepted practices are around deprecation in the R community. Since it's already a breaking change (API keys are required so that's a semantically breaking change) and the Stamen function would only make sense with a subset of styles, I thought it was easier to just remove it as that's what both OpenLayers and Leaflet Providers opted for, but I'm open to your suggestions on this. Feel free to suggest / make edits directly (I think those are enabled).

@jimr1603
Copy link

I installed Ian's version to give it a try after finding the brownout in my pipeline.

Works smooth enough once I've got the API key, and the auto messages got me on the right pages to get an API key quickly.

Unfortunately it looks like Stadia is inheriting the brownout at this stage. The following snippet has brownout tiles:


get_stadiamap(bbox = c(left = -1.56, bottom = 53.78, right = -1.5,top = 53.82),
              zoom = 14) %>%
  ggmap()

For backwards-compatibility I'd suggest leaving in get_stamen but replacing the function with a message to change to the new function.

@ianthetechie
Copy link
Contributor Author

Unfortunately it looks like Stadia is inheriting the brownout at this stage. The following snippet has brownout tiles:

@jimr1603 Quick clarification request: did you add an API key? We still allow unauthenticated requests during the brownout, but you will have to invoke register_stadiamaps("YOUR-API-KEY") to keep using the tiles after October 31st.

@jimr1603
Copy link

jimr1603 commented Oct 16, 2023 via email

@jimr1603
Copy link

Tested it just now and can't replicate. Maybe the session needed restarting after loading the API key the first time, maybe I did something wrong 🤷

@ianthetechie
Copy link
Contributor Author

Just a quick bump on this @dkahle. The total shutoff date is this week for the old Stamen URLs.

@dkahle dkahle merged commit 191159d into dkahle:master Nov 1, 2023
@dkahle
Copy link
Owner

dkahle commented Nov 1, 2023

Got it. Thanks @ianthetechie!

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

Successfully merging this pull request may close these issues.

Reflect that Stamen tiles are now hosted by Stadia Maps
3 participants