r-tmap / r-tmap/tmap

Add support for WMS layer in tm_raster

Open
#502 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

View-mode
Dominant language
R
Stars
907
Forks
123
PR merge metrics
No merged PRs in 30d

Description

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 = ""
  )

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the tm_raster and tm_rgb() entry points and compare the requested behavior with leaflet::addWMSTiles(). Determine how a raster WMS background should be exposed and what existing map-layer behavior it must preserve. Done means a WMS layer can be used as a map background with configuration comparable to the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.