Add a georeferenced video layer
Usage
add_video(
map,
urls,
coordinates,
name = "Video",
style = list(),
visible = TRUE,
opacity = 1,
...
)Arguments
- map
A GeoLibre widget.
- urls
One video URL, or several as format fallbacks such as MP4 then WebM. URLs must be
https://, since the browser's media policy blocks plain HTTP.- coordinates
Four
c(longitude, latitude)corners in top-left, top-right, bottom-right, bottom-left order, given as a list of pairs or a four-row matrix.- name
Layer name.
- style
Named list of GeoLibre style overrides such as
fillColor,strokeColor, andstrokeWidth.- visible
Whether the layer is initially visible.
- opacity
Layer opacity from zero to one.
- ...
Additional style overrides given as named arguments, merged into
style.add_geojson(map, data, fillColor = "red")andadd_geojson(map, data, style = list(fillColor = "red"))are equivalent.