Add assets for entrances, add first dependency injection

This commit is contained in:
Pieter Vander Vennet 2021-12-04 21:51:53 +01:00
commit 8e40d76281
13 changed files with 1735 additions and 48 deletions

View file

@ -20,7 +20,7 @@ export default class FilterView extends VariableUiElement {
const backgroundSelector = new Toggle(
new BackgroundSelector(),
undefined,
State.state.featureSwitchBackgroundSlection
State.state.featureSwitchBackgroundSelection
)
super(
filteredLayer.map((filteredLayers) => {

View file

@ -19,6 +19,7 @@ import BackgroundMapSwitch from "./BackgroundMapSwitch";
export default class LeftControls extends Combine {
constructor(state: {
featureSwitchBackgroundSelection: UIEventSource<boolean>;
layoutToUse: LayoutConfig,
featurePipeline: FeaturePipeline,
currentBounds: UIEventSource<BBox>,
@ -74,10 +75,16 @@ export default class LeftControls extends Combine {
undefined,
state.featureSwitchFilter
);
const mapSwitch = new Toggle(
new BackgroundMapSwitch(state, state.backgroundLayer),
undefined,
state.featureSwitchBackgroundSelection
)
super([filterButton,
downloadButtonn,
new BackgroundMapSwitch(state, state.backgroundLayer)
mapSwitch
])
this.SetClass("flex flex-col")