-1

I am working on a custom renderer an I want to access vector tile data to retrieve the features geometry from :

  • the offline dataset in priority
  • then a fallback on the cache
  • then a fallback to the Mapbox servers.

So given the bounding coordinates and a zoom level, how can I access the data ?

dagatsoin
  • 2,626
  • 6
  • 25
  • 54

1 Answers1

0

So given the bounding coordinates and a zoom level, how can I access the data ?

There is Mapbox Vector Tiles API (here is a sample query: http://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v7/14/4823/6160.mvt?access_token={your_access_token}).

This specification describes how lng/lat can be converted to tile numbers.

Anatolii Suhanov
  • 2,524
  • 1
  • 12
  • 14