Closed JinIgarashi closed 3 years ago
fixed bugs of CLI mentioned in the above comment.
This PR implemented a part of https://github.com/unvt/charites/issues/20.
You can also specify multiple tilejson URLs by using comma (,). If vector_layers
property is missing in tilejson, layers will not be inserted. Source will be created in style.yml.
@miya0001 Now I implemented --composite-layers
option to initialize a single style.yaml
. If you don't specify the option, it will generate layer configuration files separately.
generate a single root file and multiple layers' files
charites init style.yml --tilejson-urls https://raw.githubusercontent.com/mapbox/tilejson-spec/master/3.0.0/example/osm.json
generate a single root file with all layer settings.
charites init style.yml --tilejson-urls https://raw.githubusercontent.com/mapbox/tilejson-spec/master/3.0.0/example/osm.json --composite-layers
It is draft pull request because it's still under development
It will generate layers from tilejson which is specified by
--tilejson-urls
optional parameter.It was successful for
npm test
, however an error is occurred when I tried to use CLI tool.