R/layers_great-circle-layer.R

Defines functions add_great_circle_layer

Documented in add_great_circle_layer

#' Add a great circle layer to the deckgl widget
#'
#' The \code{GreatCircleLayer} is a variation of the \code{ArcLayer}.
#' It renders flat arcs along the great circle joining pairs of source
#' and target points, specified as latitude/longitude coordinates.
#'
#' @inheritParams add_layer
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/great-circle-layer}
#' @example inst/examples/deckgl-api-reference/great-circle-layer.R
#' @export
add_great_circle_layer <- function(deckgl, data = NULL, properties = list(), ..., id = "great-circle-layer") {
  add_layer(deckgl, "GreatCircleLayer", data, properties, ..., id = id)
}

Try the deckgl package in your browser

Any scripts or data that you put into this service are public.

deckgl documentation built on March 7, 2023, 5:37 p.m.