Learn R Programming

basemaps (version 0.0.7)

get_maptypes: Get all supported map types

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

get_maptypes(map_service = NULL)

Value

A character vector of supported map types

Arguments

map_service

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

See Also

basemap

Examples

Run this code
# 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

Run the code above in your browser using DataLab