R/layers_path-layer.R

Defines functions add_path_layer

Documented in add_path_layer

#' Add a path layer to the deckgl widget
#'
#' The \code{PathLayer} takes in lists of coordinate points and renders them as extruded lines with mitering.
#'
#' @inheritParams add_layer
#'
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/path-layer}
#'
#' @example inst/examples/deckgl-api-reference/path-layer.R
#'
#' @export
add_path_layer <- function(deckgl, id = "path-layer", data = NULL, properties = list(), ...) {
  add_layer(deckgl, "PathLayer", id, data, properties, ...)
}

Try the deckgl package in your browser

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

deckgl documentation built on July 1, 2020, 7:36 p.m.