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

Add support for WMS layer in tm_raster #502

Open
marionowak opened this issue Sep 28, 2020 · 2 comments
Open

Add support for WMS layer in tm_raster #502

marionowak opened this issue Sep 28, 2020 · 2 comments
Labels
View-mode View mode issues

Comments

@marionowak
Copy link

marionowak commented Sep 28, 2020

Is it possible to add a raster WMS layer as background for a map? I think this could be added to tm_rgb().
Similar to leaflet::addWMSTiles():

leaflet(map) %>%
  addTiles() %>%
  setView(lng = 8.21831, lat = 56.78995, zoom = 15) %>%
  addWMSTiles(
    map="WMS_URL",
    layers = "layer name", 
    options = WMSTileOptions(format = "image/png", transparent = TRUE),
    attribution = ""
  )
@mtennekes
Copy link
Member

Great idea! Do you think it can also be used in plotting mode? I'm not very familiar with WMS yet, but from what I've read, it should be possible. I used to have the distinction between zoom-dependent tiles (tm_basemap/tm_tiles) on the one hand, and static images on the other (tm_raster/tm_rgb), but it seems WMS could serve both.

Does any of you have a reproducible example of using WMS in R?

@tim-salabim
Copy link

There's a nice example here, though only interactive...

@Nowosad Nowosad added View-mode View mode issues and removed enhancement labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
View-mode View mode issues
Projects
None yet
Development

No branches or pull requests

4 participants