Skip to content

Commit

Permalink
Clean desktop alt lidar active property and css
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin committed Sep 26, 2024
1 parent 043ec1d commit 683836b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
},
});
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/desktop_alt/sass/desktop_alt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 683836b

Please sign in to comment.