Add a Cloud-Native PMTiles or Mapbox Vector Tile (MVT) Layer
Usage
add_pmtiles(
map,
url,
source_layer = "default",
layer_type = c("fill", "line", "circle", "fill-extrusion"),
color = "#38bdf8",
opacity = 0.75,
id = NULL,
group = NULL
)
add_mvt(
map,
url,
source_layer = "default",
layer_type = c("fill", "line", "circle", "fill-extrusion"),
color = "#38bdf8",
opacity = 0.75,
id = NULL,
group = NULL
)Arguments
- map
A
glmapwidget orglmap_proxy.- url
URL to a
.pmtilesarchive or{z}/{x}/{y}.pbfvector tile endpoint.- source_layer
Source layer name inside the vector tiles.
- layer_type
MapLibre layer type:
"fill","line","circle", or"fill-extrusion".- color
Fill/line/circle color.
- opacity
Layer opacity.
- id
Layer ID.
- group
Layer group name.