The code is as follows and has previously worked
DEFINE THE LIMITS, ZOOM OF YOUR MAP, AND TYPE OF MAP
spillover<-get_stamenmap( bbox=c(left=-2.2, bottom=51, right=-1.3, top=51.7), maptype="terrain-background", zoom=2)
VISUALIZE MAP
ggmap(spillover)
Code used to produce map however no longer works and either times out or produces a blank green map
There are some major changes in map hosting: see the NEWS file on Github, which will have broken as of Oct 31: "The existing URLs are expected to be shut off after October 31, 2023."
To solve this problem as of today (6 Nov) you first have to register with Stadia Maps, generate an API key, then install the development version of
ggmapfrom GitHub (presumably it will make it to CRAN sometime soon ...)The required functions have also changed slightly.
... although this still produces a blank green map. At the default zoom level (10), I do get a terrain map. At zoom = 4 there is only a tiny bit of detail left. Maybe these tiles just don't have the resolution you want at zoom = 2?
The example from
get_stadiamap()does work:(Also see this answer)