forked from MapComplete/MapComplete
UX: change colours of footways, cycleways and paths; fix #2085
This commit is contained in:
parent
277d3d0754
commit
630372202f
3 changed files with 313 additions and 14 deletions
|
@ -7,14 +7,20 @@ export class GenerateSunnyUnlabeled extends Script {
|
|||
super("Generates 'sunny-unlabeled.json' based on sunny.json")
|
||||
}
|
||||
|
||||
async main(args: string[]): Promise<void> {
|
||||
|
||||
generateUnlabeled() {
|
||||
const unlabeled = { "#": "AUTOMATICALLY GENERATED! Do not edit.", ...sunny }
|
||||
unlabeled.name = unlabeled.name + "-unlabeled"
|
||||
unlabeled.layers = sunny.layers.filter(
|
||||
(l) => l.type !== "symbol" || !l.layout["text-field"]
|
||||
(l) => l.type !== "symbol" || !l.layout["text-field"],
|
||||
)
|
||||
writeFileSync("public/assets/sunny-unlabeled.json", JSON.stringify(unlabeled, null, " "))
|
||||
}
|
||||
|
||||
|
||||
async main(args: string[]): Promise<void> {
|
||||
this.generateUnlabeled()
|
||||
}
|
||||
}
|
||||
|
||||
new GenerateSunnyUnlabeled().run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue