expects mapzen API key being available as MAPBOX_PUBLIC_TOKEN environment variable

get_mapbox_vector_tiles(
  bbox,
  tileset_id = "mapbox.mapbox-streets-v8",
  zoom = NULL,
  max_tiles = 9,
  refresh = FALSE
)

Arguments

bbox

bounding box for which to get vector tile data

tileset_id

Mapbox tileset ID, default is "mapbox.mapbox-streets-v8"

zoom

optional, zoom level for tiles

max_tiles

Maximum number of tiles to query, overrides desired zoom level.

refresh

results are cached for current session, optionally refresh cache

Value

a list of layers with vector tile data