maplibregl: Create a maplibregl widget

Description Usage Arguments Examples

View source: R/maplibregl.R

Description

Create a maplibregl widget

Usage

1
2
  maplibregl(style = "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
  width = NULL, height = NULL, element_id = NULL, ...)

Arguments

style

The map's style.

width

The width of the widget.

height

The height of the widget.

element_id

The unique ID of the widget.

...

The properties of the map.

Examples

1
2
3
4
5
6
7
map <- maplibregl(
  center = c(-73.9165, 40.7114),
  zoom = 10,
  pitch = 30
)

if (interactive()) map

crazycapivara/maplibre-gl-r documentation built on Dec. 19, 2021, 6:18 p.m.