I have added two markers on leaflet map, and I want to link those markers (like travelling from one location to the other). How can I do that?
The code that I used to create markers is provided below:
p <- leaflet()
p <- p %>%
addTiles()
p <- p %>%
addMarkers(lat = 32.051960, lng = 118.778030)
p <- p %>%
addMarkers(lat = 33.6028, lng = 73.0646)
p