View source: R/addBezierCurve.R
| addBezierCurve | R Documentation |
Add Bezier Curve Lines (https://ryancatalani.medium.com/creating-consistently-curved-lines-on-leaflet-b59bc03fa9dc)
addBezierCurve(map, options = list(lng1, lat1, lng2, lat2, color, weight))
map |
map |
options |
paramétrage de la courbe (liste à 6 élements : lng1, lat1, lng2, lat2, color, weight) |
library(leaflet)
m <- leaflet() %>%
addTiles() %>%
addBezierCurve(options =
list(
lng1 = 2.3488,
lat1 = 48.8534,
lng2 = -0.57918,
lat2 = 44.837789,
color = "blue",
weight = 10
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.