unvt / charites

It is an application to style vector tiles easily
https://unvt.github.io/charites/
MIT License
54 stars 13 forks source link

Generate the style.yml from tileJSON and metadata.json scheme #20

Closed miya0001 closed 3 years ago

miya0001 commented 3 years ago
JinIgarashi commented 3 years ago

In addition, PR #27 just implemented to create default layers on a single style.yml inside. However, in the future, we may add another option to generate configuration files separately for each layers.

Decomposing layer configuration files can be like the following command.

charites init style.yml --tilejson-urls <--tilejson-urls> --decomposite-layers

In root style.yml, it indicate the location of each layer configuration files.

layers:
  - !!inc/file layers/background.yml
  - !!inc/file layers/water.yml
miya0001 commented 3 years ago

Thanks 😊

If you load multiple TileJSONs, then many layers will be loaded. The user will want to adjust the order of those layers, and it is better if those layers have separated files.

And I don't want to add options if possible to keep easy to use.

JinIgarashi commented 3 years ago

@miya0001 Sure, It makes sense to generate layers file separately for convenience of users. Let me try working on #27.

As default, it can create separately as following command.

charites init style.yml --tilejson-urls <--tilejson-urls>

if --composite-layers option is added, it will generate layers in a single root file.

Multiple tilejson importing was already implemented, you can use comma to combine multiple URL.

JinIgarashi commented 3 years ago

@miya0001 I have implemented in #27. Please check it.

JinIgarashi commented 3 years ago

close this issue now