Skip to contents

Create a Map Object for MapLibre GL

Usage

maplibre(
  map_options = mapOptions(),
  width = "100%",
  height = NULL,
  elementId = NULL,
  ...
)

Examples

map_options <- mapOptions(
  center = c(-123.1256, 49.24658),
  hash = TRUE,
  pitch = 0,
  style = basemaps$carto$dark_matter,
  test = NULL
)
maplibre(map_options, zoom = 12) |>
  add_control("NavigationControl", "top-left", showCompass = F)