basemap: Basemap

View source: R/raptr-internal.R

basemapR Documentation

Basemap

Description

This function retrieves google map data for planning units. The google map data is cached to provide fast plotting capabilities.

Usage

basemap(x, basemap = "hybrid", grayscale = FALSE, force.reset = FALSE)

## S3 method for class 'RapData'
basemap(x, basemap = "hybrid", grayscale = FALSE, force.reset = FALSE)

## S3 method for class 'RapSolved'
basemap(x, basemap = "none", grayscale = FALSE, force.reset = FALSE)

Arguments

x

RapData, RapUnsolved, RapSolved object.

basemap

character type of base map to display. Valid names are "roadmap", "mobile", "satellite", "terrain", "hybrid", "mapmaker-roadmap", "mapmaker-hybrid".

grayscale

logical should base map be gray scale?

force.reset

logical ignore data in cache? Setting this as ignore will make function slower but may avoid bugs in cache system.

Value

list with google map data.

See Also

RgoogleMaps::GetMap.bbox(), plot().


raptr documentation built on March 31, 2023, 9:46 p.m.