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

Automatically unselect all but the first layer #374

Closed
mzwick1 opened this issue Apr 14, 2021 · 2 comments
Closed

Automatically unselect all but the first layer #374

mzwick1 opened this issue Apr 14, 2021 · 2 comments

Comments

@mzwick1
Copy link

mzwick1 commented Apr 14, 2021

Is it possible to control which layers are switched on? Ideally, I would have a map with a raster brick where 4 layers are loaded but only the first one switched on.
Is that already implemented and I overlocked it?

Thank you for your help

@tim-salabim
Copy link
Member

Hi @mzwick1
this used to work via a hidden argument hide. Not sure where that was degraded, but I've re-enabled it, so you can now do:

library(mapview)
library(plainview, include.only = "poppendorf")

mapview(poppendorf, hide = TRUE)

Created on 2021-06-04 by the reprex package (v2.0.0)

@tim-salabim
Copy link
Member

Also added a section in Description of the mapview documentation.

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

No branches or pull requests

2 participants