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

Broken layer controls in the interactive mode #882

Open
Nowosad opened this issue May 25, 2024 · 3 comments
Open

Broken layer controls in the interactive mode #882

Nowosad opened this issue May 25, 2024 · 3 comments
Labels

Comments

@Nowosad
Copy link
Member

Nowosad commented May 25, 2024

# remotes::install_github("r-tmap/tmap")
library(tmap)
library(terra)
tmap_mode("view")
srtm = rast(system.file("raster/srtm.tif", package = "spDataLarge"))
tm_shape(srtm) +
  tm_raster()

Peek 2024-05-25 18-47

@Nowosad Nowosad added the bug label May 25, 2024
@mtennekes
Copy link
Member

This issue was also there in v3. It has to do with the missing pane option of addRasterImage. The good news it that it seems to be fixed in leaflet 2.2.2: r-spatial/leafem#58
When it is added to leafem::addStarsImage as well I can add this in tm_raster as well.

@mtennekes
Copy link
Member

Apparently, this is still not fixed (#921) :(

The problem is that raster layers are still placed in the leaflet-tile-pane instead of leaflet-tmap4xx-pane.

Upstream ping r-spatial/leafem#58

@szylinski-sa
Copy link

Hi, has this issue progressed at all? Having the problem as described here and in #921. Switching raster layers does nothing, and switching the basemap hides them entirely with no way to bring them back (the raster layers are still checked).

R v4.3.2 (unfortunately not able to install anything else)
tmap v3.3.4
leaflet v2.2.2
leafem v0.2.3.9906 (from install_github)
Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants