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

Multiple layers of the same type #28

Closed
pnorman opened this issue Nov 15, 2016 · 2 comments
Closed

Multiple layers of the same type #28

pnorman opened this issue Nov 15, 2016 · 2 comments
Labels

Comments

@pnorman
Copy link
Collaborator

pnorman commented Nov 15, 2016

There is an example of a water layer, but it might not be what everyone needs. It's not clear how to add two layers to the repo which cover the same content and have the same most-obvious name.

@lukasmartinelli
Copy link
Contributor

There is an example of a water layer, but it might not be what everyone needs. It's not clear how to add two layers to the repo which cover the same content and have the same most-obvious name.

Yes - we hadn't had that case yet but water is a good example where different implementations are desirable.

If one is choosing two layers that have the same layer id (e.g. water) only the last one would take effect.

So for this tileset referencing both layers.

tileset:
  layers:
    - layers/water/water.yaml
    - layers/water_different/water.yaml

The later one water_different/water.yaml would have effect.

layers/water
├── mapping.yaml
├── water.sql
└── water.yaml (id of layer is `water`)

layers/water_different
└── water.yaml (id of layer is `water` as well)

One would switch it out in the tileset definition for a different layer.
Happy for feedback on the layer structure, very glad for the feedback and these questions posed by you.

@lukasmartinelli
Copy link
Contributor

We have internally agreed that OpenMapTiles should be more schema than layer catalog (since essentially it is always bound to a certain backend e.g. imposm3).

What helps to solve the use case of alternative layers is that we will make the ids configurable in the tileset rather in tile definition #43 Then you can use the approach I described above and explicitly give them an ID.

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

2 participants