h-a-graham / rayvista

An R plugin for {rayshader} to view a 3D vista anywhere on earth.
GNU General Public License v3.0
106 stars 5 forks source link

Feature request: use custom imagery provider #42

Open isaacbain opened 1 month ago

isaacbain commented 1 month ago

Would it be possible to use a custom imagery provider in plot_3d_vista()?

maptiles::get_tiles() supports custom imagery providers as xyz tiles. For example:

linz <- maptiles::create_provider(
  name = "linz",
  url = "https://basemaps.linz.govt.nz/v1/tiles/aerial/WebMercatorQuad/{z}/{x}/{y}.webp?api=c01j1vndja3pqnt7bde0t55f7s6",
  citation = "linz"
)

maptiles::get_tiles(ahuriri, linz, 10)

Then it would be great if I could use: plot_3d_vista(img_provider = linz)

h-a-graham commented 1 month ago

Cool idea, and hopefully quite striaghtforward to implement. I'll try to find some time to look into this 👍