tmapGridProviders = function(credits) {
x = maptiles::get_providers()
if (credits) {
lapply(x, "[[", "cit")
} else {
lapply(x, "[[", "src")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.