Open paragemini opened 2 years ago
Duplicate #153
@paragemini
It is not implemented yet but you can use the json editor:
remotes::install_github("crazycapivara/deckgl")
library(deckgl)
deckgl(zoom = 10, pitch = 35) %>%
add_scatterplot_layer(
data = bart_stations,
getPosition = ~lng + lat,
radiusScale = 6,
getRadius = 50,
getColor = c(240, 140, 20),
visible = TRUE
) %>%
add_text_layer(
data = bart_stations,
getPosition = ~lng + lat,
getText = ~name,
getAlignmentBaseline = "bottom",
visible = TRUE
) %>%
add_basemap() %>%
add_json_editor(maxLines = 25)
Then change visible = false/true
in the editor for layers you want to hide/show
Hello -
I have a dataframe with racial makeup for Chicago. I am trying to add 5 different layers for 5 different races. Is there a way to toggle them on and off like one do in leaflet like the jpeg below ?
Final layer box that could probably come at the top-right corner of the final map Thank you for the lovely package!!