R/layers_h3-cluster-layer.R

Defines functions add_h3_cluster_layer

Documented in add_h3_cluster_layer

#' Add a h3 cluster layer to the deckgl widget
#' @inheritParams add_layer
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/h3-cluster-layer}
#' @example inst/examples/deckgl-api-reference/h3-cluster-layer.R
#' @export
add_h3_cluster_layer <- function(deckgl, id = "h3-cluster-layer", data = NULL, properties = list(), ...) {
  deckgl$dependencies <- c(use_deps("h3-js"), deckgl$dependencies)
  add_layer(deckgl, "H3ClusterLayer", 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.