Add control on FilteredLayer to show/hide layers

This commit is contained in:
Stanislas Gueniffey 2020-07-15 15:55:08 +02:00
parent 5aa620440a
commit 45351d9dd1
4 changed files with 43 additions and 16 deletions

View file

@ -4,7 +4,7 @@ import { GRB } from "./Layouts/GRB";
import { Statues } from "./Layouts/Statues";
import { Bookcases } from "./Layouts/Bookcases";
import Cyclofix from "./Layouts/Cyclofix";
import { DrinkingWater } from "./Layouts/DrinkingWater";
import { WalkByBrussels } from "./Layouts/WalkByBrussels";
import { All } from "./Layouts/All";
import { Layout } from "./Layout";
@ -18,7 +18,7 @@ export class AllKnownLayouts {
new GRB(),
new Cyclofix(),
new Bookcases(),
new DrinkingWater(),
new WalkByBrussels(),
all
/*new Toilets(),
new Statues(),
@ -31,4 +31,13 @@ export class AllKnownLayouts {
}
return allSets;
}
public static GetSets(layoutNames): any {
const all = new All();
for (const name of layoutNames) {
all.layers = all.layers.concat(AllKnownLayouts.allSets[name].layers);
}
return all;
}
}