-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Given the encouragement by package maintainers for everyone to migrate from raster to terra, I thought it may be helpful to make this change for mapboxapi.
I already was able to replace raster functions with the terra versions for layer_static_mapbox() and tm_static_mapbox(). The only other using raster is get_static_tiles() which is a bit more complicated. It looks like ceramic (which you cite as the source for code that was adapted and incorporated into the function) has also already migrated to terra so I think it shouldn't be too difficult to figure out based on this updated code: https://github.com/hypertidy/ceramic/blob/f228ea6e5842cb55cafa413bdcb921b36047849a/R/get_tiles.R
If you wanted to tackle the latter changes to get_static_tiles() yourself, I'm happy to open a pull request for the other changes. If not, I'd be happy to figure it out sometime in the next couple weeks.