I have a shiny app that is a basically a leaflet with polylines that go from one lat/long to another.
I want to have some polylines be blue and some be green.
However, I am not getting this to work. This is the data I am giving the function:
This is the function:
m = addPolylines(m, lng = data_subset()$long,
lat = data_subset()$lat,
color = data_subset()$color,
group = data_subset()$group
)
The output map has all the lines green however. What am I doing wrong?