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
	}
}
r-tmap/tmap documentation built on Feb. 28, 2025, 7:54 a.m.