I'm using mapdeck::add_path()
to show aircraft flight paths. I would like to color the paths by elevation; is this possible? Here is a short example:
library(mapdeck)
library(sf)
# From https://github.com/kent37/mapdeck_play/blob/master/tracks_2019_03_11.gpkg?raw=true
one_day = st_read('tracks_2019_03_11.gpkg')
key = 'your_api_key'
mapdeck(location=c(-71.128184, 42.3769824), zoom=14, key=key) %>%
add_path(one_day)
Thanks!