Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include source and source_name vector_layers keys #54

Open
samanpwbb opened this issue Sep 11, 2018 · 0 comments
Open

Include source and source_name vector_layers keys #54

samanpwbb opened this issue Sep 11, 2018 · 0 comments
Labels

Comments

@samanpwbb
Copy link

samanpwbb commented Sep 11, 2018

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.

// 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.

@samanpwbb samanpwbb added the v4 label Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant