From 683836b1909a07e8818658d28ac975ae02686f56 Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Thu, 26 Sep 2024 13:51:54 +0200 Subject: [PATCH] Clean desktop alt lidar active property and css --- contribs/gmf/apps/desktop_alt/Controller.js | 16 ---------------- .../gmf/apps/desktop_alt/sass/desktop_alt.scss | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/contribs/gmf/apps/desktop_alt/Controller.js b/contribs/gmf/apps/desktop_alt/Controller.js index 5283fbe92aa2..4f05dbac4423 100644 --- a/contribs/gmf/apps/desktop_alt/Controller.js +++ b/contribs/gmf/apps/desktop_alt/Controller.js @@ -35,11 +35,9 @@ import gmfControllersAbstractDesktopController, { import appBase from '../appmodule'; import gmfImportModule from 'gmf/import/module'; import gmfFloorModule from 'gmf/floor/module'; -import ngeoMiscToolActivate from 'ngeo/misc/ToolActivate'; import ngeoStreetviewModule from 'ngeo/streetview/module'; import ngeoRoutingModule from 'ngeo/routing/module'; import ngeoStatemanagerWfsPermalink from 'ngeo/statemanager/WfsPermalink'; -import panels from 'gmfapi/store/panels'; /** * @private @@ -54,20 +52,6 @@ class Controller extends AbstractDesktopController { if (this.dimensions.FLOOR == undefined) { this.dimensions.FLOOR = '*'; } - - /** - * @type {boolean} - */ - this.drawLidarprofilePanelActive = false; - const drawLidarprofilePanelActive = new ngeoMiscToolActivate(this, 'drawLidarprofilePanelActive'); - this.ngeoToolActivateMgr.registerTool('mapTools', drawLidarprofilePanelActive, false); - const $timeout = $injector.get('$timeout'); - panels.getActiveToolPanel().subscribe({ - next: (panel) => { - this.drawLidarprofilePanelActive = panel === 'lidar'; - $timeout(() => {}); // this triggered on DOM click, we call $timeout to force Angular digest - }, - }); } /** diff --git a/contribs/gmf/apps/desktop_alt/sass/desktop_alt.scss b/contribs/gmf/apps/desktop_alt/sass/desktop_alt.scss index da13cd6c5add..af062d36ac7f 100644 --- a/contribs/gmf/apps/desktop_alt/sass/desktop_alt.scss +++ b/contribs/gmf/apps/desktop_alt/sass/desktop_alt.scss @@ -63,7 +63,7 @@ div .ngeo-displaywindow { $displaywindow-min-height: 15rem; left: calc($app-margin + $left-panel-width + $displaywindow-min-height / 2); right: initial; - top: $topbar-height + $app-margin + 3 * $map-tools-size; + top: calc($topbar-height + $app-margin + 3 * $map-tools-size); } .offset-info-icon {