Pārlūkot izejas kodu

feat: disable info queries

jmacura 5 gadi atpakaļ
vecāks
revīzija
e268c49ef1
2 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/app.config.ts
  2. 3 0
      src/app.service.ts

+ 2 - 0
src/app.config.ts

@@ -28,6 +28,7 @@ export const AppConfig = {
     }),
   ],
   popUpDisplay: 'hover',
+  queryPoint: 'hidden',
   project_name: 'erra/map',
   default_view: new View({
     center: [2433348.3022471312, 7744501.813885343],
@@ -58,6 +59,7 @@ export const AppConfig = {
   panelsEnabled: {
     composition_browser: false,
     feature_crossfilter: false,
+    info: false,
     saveMap: false,
     sensors: false,
     tracking: false,

+ 3 - 0
src/app.service.ts

@@ -98,6 +98,8 @@ export class AppService {
         },
       ],
     });
+    this.nuts3Layer.set('editable', false);
+    this.nuts3Layer.set('queryable', false);
     this.pilotRegions.set('popUp', {
       attributes: [
         {attribute: 'NUTS_NAME', label: 'Region name'},
@@ -111,6 +113,7 @@ export class AppService {
         },*/
       ],
     });
+    this.pilotRegions.set('queryable', false);
     this.adjusterEventService.clustersLoaded.subscribe(({success}) => {
       if (success) {
         this.colorPalette = this.generateRandomColorPalette(