Open msbarry opened 2 years ago
It is nice to have type hints when writing config. Maybe we could use something like https://github.com/aws/jsii to generate the yamls from typed languages like TypeScript?
It is nice to have type hints when writing config. Maybe we could use something like https://github.com/aws/jsii to generate the yamls from typed languages like TypeScript?
I added json-schema definitions in #323 - you can use them in vscode by installing the YAML plugin then starting off a yaml file with:
# yaml-language-server: $schema=https://raw.githubusercontent.com/onthegomap/planetiler/main/planetiler-custommap/planetiler.schema.json
Master ticket to track followup tasks for #160 and #323:
expose planetiler functionality:
yaml config flexibility/ease of use:
type
coercions (wayzorder, round_int, long, double, bool, bool_int, directions, meters)--only-layers
and--include-layers
arguments and limit the sources we process to only ones needed by those layerscode cleanup
Expression
toBooleanExpression
andMultiExpression
toMatchExpression
TagValueProducer
data types to anenum