Browse Source

Get rid of console warnings

jmacura 5 years ago
parent
commit
5f8ab8bcf8
1 changed files with 9 additions and 8 deletions
  1. 9 8
      src/app.js

+ 9 - 8
src/app.js

@@ -37,9 +37,9 @@ const module = angular.module('hs', [
 module.directive('hs', ['config', 'Core', function (config, Core) {
   return {
     template: Core.hslayersNgTemplate,
-    link: function (scope, element) {
+    /* link: function (scope, element) {
       Core.fullScreenMap(element);
-    }
+     } */
   };
 }]);
 
@@ -66,7 +66,7 @@ function perc2color (perc) {
     r = Math.round(510 - 5.10 * perc);
   }
   // eslint-disable-next-line no-unused-vars
-  const h = r * 0x10000 + g * 0x100 + b * 0x1;
+  // const h = r * 0x10000 + g * 0x100 + b * 0x1;
   return `rgba(${r}, ${g}, ${b}, 0.7)`;
 }
 
@@ -135,18 +135,19 @@ module.value('config', {
   },
   panelWidths: {
   },
+  // allowAddExternalDatasets: false,
   panelsEnabled: {
-    language: false,
     composition_browser: false,
     legend: false,
-    ows: false,
+    draw: false,
     info: false,
     saveMap: false,
-    draw: false
+    language: false
   },
   searchProvider: (q) => {
     return `/app/jupyter-test/8085/search/?q=${q}`;
-  }
+  },
+  sizeMode: 'fullscreen'
 });
 
 module.controller('Main', ['$scope', 'Core', '$compile', 'hs.layout.service', 'pra.adjuster.service',
@@ -155,7 +156,7 @@ module.controller('Main', ['$scope', 'Core', '$compile', 'hs.layout.service', 'p
     $scope.panelVisible = layoutService.panelVisible;
     layoutService.sidebarRight = false;
     // layoutService.sidebarToggleable = false;
-    Core.singleDatasources = true;
+    // Core.singleDatasources = true;
     layoutService.sidebarButtons = true;
     layoutService.setDefaultPanel('adjuster');
     $scope.$on('scope_loaded', function (event, args) {