get_maptypes | R Documentation |
This function returns every supported map type that can be used as input to the map_type
argument of set_defaults
, basemap
or associated functions.
get_maptypes(map_service = NULL)
map_service |
character, optional, either |
A character vector of supported map types
"osm"
: Open Street Map contributors (https://www.openstreetmap.org/copyright), Open Topo Map (https://opentopomap.org/)
"osm_stamen"
: Stamen (https://maps.stamen.com/) via Stadia Maps (https://stadiamaps.com/), Open Street Map contributors (https://www.openstreetmap.org/copyright)
"osm_stadia"
: Stadia Maps (https://stadiamaps.com/), Open Street Map contributors (https://www.openstreetmap.org/copyright)
"osm_thunderforest"
: Thunderforest (https://www.thunderforest.com/), Open Street Map contributors (https://www.openstreetmap.org/copyright)
"carto"
: Carto (https://carto.com/)
"mapbox"
: Mapbox (https://www.mapbox.com)
"esri"
: Esri (https://www.esri.com/en-us/home)
basemap
# for all services
get_maptypes()
# for osm only
get_maptypes("osm")
# or
get_maptypes()$osm
# for mapbox only
get_maptypes("mapbox")
# or
get_maptypes()$mapbox
# same for all other map services
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.