The application registers the pmtiles:// protocol itself, so a plain
https:// URL to the archive is what this expects.
Arguments
- map
A GeoLibre widget.
- url
URL of the
.pmtilesarchive.- name
Layer name.
- tile_type
"vector"or"raster".- source_layers
Vector source layer names to render. Vector tiles only.
- style
Named list of GeoLibre style overrides such as
fillColor,strokeColor, andstrokeWidth.- visible
Whether the layer is initially visible.
- opacity
Layer opacity from zero to one.
- ...
Additional style overrides given as named arguments, merged into
style.add_geojson(map, data, fillColor = "red")andadd_geojson(map, data, style = list(fillColor = "red"))are equivalent.