Fix skipped question count

This commit is contained in:
Pieter Vander Vennet 2020-07-25 01:07:02 +02:00
parent 3efcc4d456
commit a39d21a5a9
16 changed files with 3365 additions and 11 deletions

View file

@ -17,7 +17,6 @@ export class AllKnownLayouts {
public static allSets = AllKnownLayouts.AllLayouts();
private static AllLayouts(): Map<string, Layout> {
const all = new All();
const layouts: Layout[] = [
new Groen(),
new GRB(),
@ -27,15 +26,26 @@ export class AllKnownLayouts {
new MetaMap(),
new StreetWidth(),
new Natuurpunt(),
all
/*new Toilets(),
new Statues(),
*/
];
const all = new All();
for (const layout of layouts) {
for (const layer of layout.layers) {
if (all.layers.indexOf(layer) >= 0) {
continue;
}
all.layers.push(layer);
}
}
layouts.push(all)
const allSets: Map<string, Layout> = new Map();
for (const layout of layouts) {
allSets[layout.name] = layout;
all.layers = all.layers.concat(layout.layers);
}
return allSets;
}