mapbox / mapbox/tippecanoe

add a flag to generate empty tiles

Open
#937 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.1k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

Is it possible to add a flag to the tiler so that empty tiles are generated where there are no features?

Use case - we have a static dataset of country, province and district boundaries that don't change much, I want to generate a folder of tiles and store them in Google Cloud Storage in their quad-tree folder structure. Where we run into problems is using deck.gl... when you pan around the map it will ask for tiles that might not have been generated.

i.e. zoom level 10, x 1000, y 1000 might be in the middle of the ocean, but deck.gl will still go off to Google Cloud Storage and ask for that tile, resulting in a 404 error and spamming the browser console with errors.

Is there a way we can ensure that vector tiles are generated for areas where there are no features?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the tiler's command-line option handling and tile-generation path; the issue names no files or tests. Reproduce the missing-tile case with an area containing no features, then define completion as a flag that emits empty tiles for the expected quadtree paths without features.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.