mapbox / mapbox/tilejson-spec

Include source and source_name vector_layers keys

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

v4
Dominant language
No language data
Stars
296
Forks
51
PR merge metrics
No merged PRs in 30d

Description

When more than one tileset is composited, vector_layers get merged into a single list. `source` and `source_name` fields are useful for identifying which vector_layers belong to which member of a composite source.

```js
// An example vector layer entry with `source` and `source_name`:
{
description: string,
fields: { [string]: string },
id: string,
maxzoom?: number,
minzoom?: number,
source: string, // Matches id of parent tileset
source_name?: string // Matches name of parent tileset
}
```

This does bring up a bigger question for me. I find the tileJSON spec's ability to successfully describe composited tileJSON to be lacking. I want to know more details about each tileset in my composite. A nested data structure for composited tileJSON that includes the full original tileJSON for each composited tileset would be a much more convenient document to work with, for example.

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 reviewing the tileJSON specification and the composite-source behavior described in issue #54. Determine the scope for adding source and source_name to vector_layers, and whether nested metadata for each composited tileset is included. Done means the specification clearly defines the supported fields and composite representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.