Include source and source_name vector_layers keys
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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