Initialize a Maplibre GL Map
maplibre.Rd
Initialize a Maplibre GL Map
Usage
maplibre(
style = carto_style("voyager"),
center = c(0, 0),
zoom = 0,
bearing = 0,
pitch = 0,
bounds = NULL,
width = "100%",
height = NULL,
...
)
Arguments
- style
The style JSON to use.
- center
A numeric vector of length 2 specifying the initial center of the map.
- zoom
The initial zoom level of the map.
- bearing
The initial bearing (rotation) of the map, in degrees.
- pitch
The initial pitch (tilt) of the map, in degrees.
- bounds
An sf object or bounding box to fit the map to.
- width
The width of the output htmlwidget.
- height
The height of the output htmlwidget.
- ...
Additional named parameters to be passed to the Mapbox GL map.