Vector Tiles

The Studio Platform supports vector tiled datasets encoded in the Mapbox Vector Tile format.

What Are Vector Tiles?

The geospatial industry has long relied on tiling as a way to deal with the massive size of geospatial datasets. Vector Tiles use spatial distribution of the data to break it into increasingly finer tiles covering smaller and smaller geospatial subsets of the data. Applications then load only the tiles they need to cover the current viewport with an appropriate level of detail.

A well-tiled vector tile dataset is visually very similar to the visualization generated by loading the full data table, but loads much faster.

Studio loads the vector tiles dynamically to match the user’s experience. As the user zooms and pans around the map, the server delivers the appropriate chunk of information from the dataset.

Vector Tile Benefits

TileJSON Support

✅

Created during generation

Whenever you generate vector tiles in Studio, a TileJSON file containing metadata is created and saved to your Foursquare Studio account.

When loading a vector tiled dataset, Studio will load the associated TileJSON if it is available.

TileJSON files contains metadata about data properties (columns), including names, types and ranges, enabling improved analytics and visualization features.

Color Scale Without Metadata With Metadata Metadata Requirements
Custom Breaks ✅ ✅ None (the user specifies the ranges)
Quantize ❌ ✅ Needs the global min and max value of each column. This metadata is stored during vector tile generation.
Quantile ❌ ❌ Would need all values in a column to create equal-size bins. This is too much data to save as metadata.
Jenks Natural Breaks ❌ ❌ Would need all values in a column to enable clustering. This is too much data to save as metadata.
Categorical ❌ ✅ Needs a range of all discrete values for a column. This is saved in metadata for columns with less than 1000 discrete values.
Dynamic Color ✅ ✅ Works on data in viewport. No metadata required.

Resources

We have developed a couple resource assist in your experience with Vector Tiles in Foursquare Studio: