get_maptypes: Get all supported map types

Description Usage Arguments Value Source See Also Examples

View source: R/get_maptypes.R

Description

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.

Usage

1
get_maptypes(map_service = NULL)

Arguments

map_service

character, optional, either "osm", "osm_stamen", "osm_thunderforest", "carto", "mapbox" or "esri". Otherwise, a list of map types for both services is returned.

Value

A character vector of supported map types

Source

"osm": Open Street Map contributors (https://www.openstreetmap.org/copyright), Open Topo Map (https://opentopomap.org/), Martin Tesar (http://mtbmap.cz/)

"osm_stamen": Stamen (http://maps.stamen.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)

See Also

basemap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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

basemaps documentation built on May 19, 2021, 5:06 p.m.