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

download_basemap from Stamen no longer working #644

Closed
ohueppop opened this issue Nov 4, 2023 · 2 comments
Closed

download_basemap from Stamen no longer working #644

ohueppop opened this issue Nov 4, 2023 · 2 comments
Milestone

Comments

@ohueppop
Copy link

ohueppop commented Nov 4, 2023

Trying to download a basemap from Stamen by bm <- download_basemap(ppi) results in error "Could not resolve host: tile.stamen.com".
The reason is the recent Stamen migration to Stadia Maps (see dkahle/ggmap#351).
Any ideas how to solve this?

@iskandari
Copy link
Collaborator

iskandari commented Nov 4, 2023

@ohueppop in the latest release we switched to ggspatial for OSM basemaps as ggmap now requires API keys to access Stamen maps. The basemap download now happens on the fly (then locally cached):

ppi <- project_as_ppi(example_scan)
basemap <- rosm::osm.types()[1]
map(ppi, map = basemap, param = "VRADH")

the basemap options from rosm are:

 rosm::osm.types()
 [1] "osm"                    "opencycle"             
 [3] "hotstyle"               "loviniahike"           
 [5] "loviniacycle"           "stamenbw"              
 [7] "stamenwatercolor"       "osmtransport"          
 [9] "thunderforestlandscape" "thunderforestoutdoors" 
[11] "cartodark"              "cartolight" 

for a full example:

?map.ppi

@ohueppop
Copy link
Author

ohueppop commented Nov 5, 2023

Thank you @iskandari. This works perfectly with the latest release. However, I regret that the nice old Stamen maps (e.g. those without labels) can no longer be used and now require an API key.

@adokter adokter added this to the 0.8.0 milestone Jul 30, 2024
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

3 participants