R/controls.R

Defines functions add_control

Documented in add_control

#' Add a control to the map
#'
#' @inheritParams add_layer
#' @param name name of the control
#' @param position position on the map
#' @param ... options passed to the control
#' @export
add_control <- function(map, name = "NavigationControl", position = "top-left", ...) {
  invoke_method(map, "addControl", name, list(...), position)
}
crazycapivara/cartovl documentation built on Nov. 4, 2019, 9:16 a.m.