Every source the styles' layers draw from contributes its attribution
(from the style, the source's TileJSON or PMTiles metadata), as
MapLibre's attribution control collects it: plain text, without
duplicates, joined with " | ". Use it for a caption or credit line,
e.g. labs(caption = get_attribution(style)). Python:
basemapper.get_attribution() and m.get_attribution().
Examples
get_attribution("Esri.WorldImagery")
#> [1] "Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"
if (FALSE) { # \dontrun{
m <- basemap("OpenFreeMap.Liberty", center = c(-111.89, 40.76), zoom = 12)
get_attribution(m)
} # }