get_mapbox_vector_tiles: Get vector tile data

View source: R/mapbox_vetor_tiles.R

get_mapbox_vector_tilesR Documentation

Get vector tile data

Description

expects mapzen API key being available as MAPBOX_PUBLIC_TOKEN environment variable

Usage

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


mountainMath/mountainmathHelpers documentation built on May 3, 2024, 5:55 p.m.