Add Geodesic Lines
addGeodesicPolylines(map, lng = NULL, lat = NULL, layerId = NULL,
group = NULL, steps = 10, wrap = TRUE, stroke = TRUE,
color = "#03F", weight = 5, opacity = 0.5, dashArray = NULL,
smoothFactor = 1, noClip = FALSE, popup = NULL, popupOptions = NULL,
label = NULL, labelOptions = NULL, options = pathOptions(),
highlightOptions = NULL, data = getMapData(map))addGreatCircles(map, lat_center = NULL, lng_center = NULL, radius,
layerId = NULL, group = NULL, steps = 10, wrap = TRUE,
stroke = TRUE, color = "#03F", weight = 5, opacity = 0.5,
dashArray = NULL, smoothFactor = 1, noClip = FALSE, popup = NULL,
popupOptions = NULL, label = NULL, labelOptions = NULL,
options = pathOptions(), highlightOptions = NULL,
data = getMapData(map))
map object
vector of longitudes
vector of latitudes
the layer id
the name of the group this raster image should belong to (see
Defines how many intermediate points are generated along the path. More steps mean a smoother path.
Wrap line at map border (date line). Set to 'false' if you want lines to cross the dateline (experimental, see noWrap-example on how to use)
whether to draw stroke along the path (e.g. the borders of polygons or circles)
stroke color
stroke width in pixels
stroke opacity (or layer opacity for tile layers)
a string that defines the stroke dash pattern
how much to simplify the polyline on each zoom level
whether to disable polyline clipping (more means better performance and less accurate representation)
a character vector of the HTML content for the popups (you are
recommended to escape the text using htmlEscape()
A Vector of popupOptions
to provide popups
for security reasons)
a character vector of the HTML content for the labels
A Vector of labelOptions
to provide label
options for each label. Default NULL
a list of additional options, intended to be provided by
a call to pathOptions
()
Options for highlighting the shape on mouse over.
map data
lat/lng for the center
in meters
addGreatCircles
: Adds a Great Circle to the map