R/tmapLeafletProviders.R

Defines functions tmapLeafletProviders

tmapLeafletProviders = function(credits) {
	if (credits) {
		x = leaflet::providers.details
		lapply(x, function(xi) {
			xi$options$attribution
		})
	} else {
		leaflet::providers
	}
}

Try the tmap package in your browser

Any scripts or data that you put into this service are public.

tmap documentation built on June 26, 2026, 5:08 p.m.