spoils: To the victor go the spoils.

Description Usage Arguments Value Examples

View source: R/spoils.R

Description

Request vector tile from Mapbox and receive a list of simple feature data frames , one per layer (e.g. roads, water, places)

Usage

1
2
spoils(longitude = 0, latitude = 0, zoom = 1, nrow = 1, ncol = 1,
  crs = 4326, tileset_id = "mapbox.mapbox-streets-v8")

Arguments

longitude

numeric left most point ( I think?) of tile in degrees. TODO accept projection native coords

latitude

numeric top most point ( I think?) of tile in degrees. TODO accept projection native coords

zoom

integer the zoom level for the request tile in the Slippy Map Tilenames specification. 1 = the world, 18 is on top of your house

crs

the EPSG code for the coordinate reference system of your supplied longitude and latitude. The returned simple features will be in the same crs

tileset_id

character a standard mapbox or custom tileset

nrows

integer how many rows of tiles

ncols

integer how many coumns of tiles

Value

a list of simple feature data frames , one per layer (e.g. roads, water, places)

Examples

1
2
3
4
## Not run: 
    spoils()
 
## End(Not run)

adam-gruer/victor documentation built on Nov. 10, 2019, 6:20 p.m.