-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I am wondering if this is possible (using color = "MaxWind" or a palette)? I guess not, since color is not used in scaleOptions.
library(leaflet)
library(leafem)
library(sf)
lines <- st_as_sf(leaflet::atlStorms2005)
fgb_file <- tempfile(fileext = ".fgb")
st_write(lines, fgb_file)
leaflet() %>%
addTiles() %>%
leafem::addFgb(fgb_file, color = "MaxWind", opacity=1, weight = 1) %>%
leafem::addMouseCoordinates() %>%
setView(-50, 45, 3)
I would like to use something similar to leafgl:
library(leafgl)
leaflet() %>%
addTiles() %>% leafem::addMouseCoordinates() %>%
addGlPolylines(data = lines, color = "MaxWind", opacity=1, weight = 1)
Metadata
Metadata
Assignees
Labels
No labels