Mapbox Tiling Service
Beta

Building footprints

This recipe can be used to create a tileset that contains building footprints. It uses the Rhode Island buildings dataset from Microsoft data.

We can conclude that an appropriate value for maxzoom is 15 because it is a one foot resolution on the ground.

We have chosen a value of 13 for minzoom based on the following considerations and assumptions:

  • It is reasonable to have about 50,000 features in a tile
  • A building lot is approximately 5,000 square feet
  • So a tile at the minimum zoom should be about 50000 * 5000 = 250,000,000 square feet
  • Sqrt(250,000,000) ~= 15811
  • 360.0 / (2 ** 13) / .00000274 ~= 16038, which is pretty close to that (.00000274 is the length in feet of a degree at the equator)
{
"version": 1,
"layers": {
"building_footprints": {
"source": "mapbox://tileset-source/{username}/buildings",
"minzoom": 13,
"maxzoom": 15
}
}
}
FieldDescriptionData type
sourceThe source data to use for this layer. Tileset sources are created with the Create a tileset source endpoint of Mapbox Tiling Service (MTS).String
minzoomSpecify the minimum zoom at which your tileset will be available. A value of 13 here ensures that the buildings will be visible when a user has zoomed in significantly.Integer
maxzoomSpecify the maximum zoom at which your tileset will be available. A value of 15 here ensures that the buildings will be visible when a user has zoomed in significantly.Integer

Example data

Rhode Island buildings

Convert the downloaded data to line-delimited GeoJSON with the tippecanoe-json-tool command.

$ unzip -p RhodeIsland.zip | tippecanoe-json-tool > RhodeIsland.json
Was this page helpful?