View source: R/mapbox_vetor_tiles.R
get_mapbox_vector_tiles | R Documentation |
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
)
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 |
a list of layers with vector tile data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.