2020-07-15 14:03:44 +02:00
|
|
|
import { Groen } from "./Layouts/Groen";
|
|
|
|
import { Toilets } from "./Layouts/Toilets";
|
|
|
|
import { GRB } from "./Layouts/GRB";
|
|
|
|
import { Statues } from "./Layouts/Statues";
|
|
|
|
import { Bookcases } from "./Layouts/Bookcases";
|
2020-07-08 17:12:23 +02:00
|
|
|
import Cyclofix from "./Layouts/Cyclofix";
|
2020-07-15 15:55:08 +02:00
|
|
|
import { WalkByBrussels } from "./Layouts/WalkByBrussels";
|
2020-07-15 14:03:44 +02:00
|
|
|
import { All } from "./Layouts/All";
|
|
|
|
import { Layout } from "./Layout";
|
2020-07-17 13:27:09 +02:00
|
|
|
import {MetaMap} from "./Layouts/MetaMap";
|
2020-07-17 17:21:07 +02:00
|
|
|
import {Widths} from "./Layers/Widths";
|
|
|
|
import {StreetWidth} from "./Layouts/StreetWidth";
|
2020-07-18 20:40:51 +02:00
|
|
|
import {NatureReserves} from "./Layers/NatureReserves";
|
|
|
|
import {Natuurpunt} from "./Layouts/Natuurpunt";
|
2020-07-05 18:59:47 +02:00
|
|
|
|
|
|
|
export class AllKnownLayouts {
|
2020-07-20 12:39:43 +02:00
|
|
|
public static allSets = AllKnownLayouts.AllLayouts();
|
2020-07-05 18:59:47 +02:00
|
|
|
|
2020-07-20 12:39:43 +02:00
|
|
|
private static AllLayouts(): Map<string, Layout> {
|
2020-07-12 23:19:05 +02:00
|
|
|
const all = new All();
|
2020-07-15 14:03:44 +02:00
|
|
|
const layouts: Layout[] = [
|
2020-07-05 18:59:47 +02:00
|
|
|
new Groen(),
|
|
|
|
new GRB(),
|
2020-07-08 17:12:23 +02:00
|
|
|
new Cyclofix(),
|
2020-07-12 23:19:05 +02:00
|
|
|
new Bookcases(),
|
2020-07-15 15:55:08 +02:00
|
|
|
new WalkByBrussels(),
|
2020-07-17 13:27:09 +02:00
|
|
|
new MetaMap(),
|
2020-07-17 17:21:07 +02:00
|
|
|
new StreetWidth(),
|
2020-07-18 20:40:51 +02:00
|
|
|
new Natuurpunt(),
|
2020-07-12 23:19:05 +02:00
|
|
|
all
|
2020-07-05 18:59:47 +02:00
|
|
|
/*new Toilets(),
|
|
|
|
new Statues(),
|
2020-07-08 16:07:16 +02:00
|
|
|
*/
|
2020-07-05 18:59:47 +02:00
|
|
|
];
|
2020-07-20 12:39:43 +02:00
|
|
|
const allSets: Map<string, Layout> = new Map();
|
2020-07-05 18:59:47 +02:00
|
|
|
for (const layout of layouts) {
|
|
|
|
allSets[layout.name] = layout;
|
2020-07-12 23:19:05 +02:00
|
|
|
all.layers = all.layers.concat(layout.layers);
|
2020-07-05 18:59:47 +02:00
|
|
|
}
|
|
|
|
return allSets;
|
|
|
|
}
|
2020-07-15 15:55:08 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2020-07-05 18:59:47 +02:00
|
|
|
}
|