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

Formalise vector_layers #29

Closed
stevage opened this issue Jan 15, 2018 · 1 comment
Closed

Formalise vector_layers #29

stevage opened this issue Jan 15, 2018 · 1 comment

Comments

@stevage
Copy link

stevage commented Jan 15, 2018

The spec does not currently support any way to describe the layers contained within the tiles. This means that the client has to "somehow know" which layers exist. IMHO this kind of metadata makes a lot of sense to include.

Both Mapbox's API and the tile server Tessera uses the "vector_layers" property for this purpose:

    "vector_layers": [
        {
            "id": "tr_rail",
            "description": "",
            "minzoom": 0,
            "maxzoom": 13,
            "fields": {
                "FTYPE_CODE": "String",
                "NAME": "String",
                "STRUC_TYPE": "String",
                "TOUR_TYPE": "String"
            }
        }
    ]

Mapbox's API includes source and source_name properties on individual layers. (The former for the case where a multiple sources are being combined in one query, I presume).

I'm happy to write this up as a PR if desirable.

@stevage
Copy link
Author

stevage commented Jan 15, 2018

OIC, duplicate of #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant