sinkovit / Spatial-ecology

Space use software deployed in the Spatial Ecology Gateway
MIT License
2 stars 0 forks source link

Stamen maps error #67

Open sinkovit opened 12 months ago

sinkovit commented 12 months ago

Stamen map functionality used in displaying MCP recently broke. See ...

https://stackoverflow.com/questions/77235892/ggmap-and-get-stamenmap-return-an-error-when-plotting-a-region

https://github.com/dkahle/ggmap/issues/353

Monitor issue and modify code as described in second URL if necessary. Since this is not super time critical, may wait until the developers have a clean solution.

sinkovit commented 12 months ago

@monaw Hi Mona, I was able to fix the Stamen maps problem. In R studio, do the following

library(devtools)
install_github("stadiamaps/ggmap")
library(ggmap)
register_stadiamaps(key="SEE SLACK", write=TRUE)

And in compute.R, replace get_stamenmap() with get_stadiamap(). I made this change already to the dev branch. Btw, the new stadiamap server appears to be much faster!

Notes:

sinkovit commented 12 months ago

Do not close this issue until after stadiamap changes have been pushed into the ggmap CRAN package!

That way we'll remember to update the CRAN package properly, with any other changes the ggmap folks implement.

monaw commented 10 months ago

we need to resolve the stadiamap license issue before this feature can be released on the hub...

monaw commented 9 months ago

Steven @ HUBzero says the license says we cannot share the api key (see ticket 50 and ticket 57 )