Add first dashboard layout

This commit is contained in:
Pieter Vander Vennet 2022-07-13 17:58:01 +02:00
parent f805178b9b
commit 812563ddc5
5 changed files with 201 additions and 11 deletions

View file

@ -44,14 +44,9 @@ export default class DefaultGUI {
}
public setup(){
if (this.state.layoutToUse.customCss !== undefined) {
Utils.LoadCustomCss(this.state.layoutToUse.customCss);
}
this.SetupUIElements();
this.SetupMap()
if (this.state.layoutToUse.customCss !== undefined && window.location.pathname.indexOf("index") >= 0) {
Utils.LoadCustomCss(this.state.layoutToUse.customCss)
}
@ -144,7 +139,7 @@ export default class DefaultGUI {
new ShowDataLayer({
leafletMap: state.leafletMap,
layerToShow: new LayerConfig(home_location_json, "all_known_layers", true),
layerToShow: new LayerConfig(home_location_json, "home_location", true),
features: state.homeLocation,
state
})