Quellcode durchsuchen

Obtain method and serviceUrl from Adjuster service

One TODO solved :tada:
jmacura vor 5 Jahren
Ursprung
Commit
18bd7a169a
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      src/app.service.ts

+ 4 - 3
src/app.service.ts

@@ -80,9 +80,8 @@ export class AppService {
     style: this.nuts3style,
     title: 'NUTS3 regions',
   });
-  // TODO: 'method' must be obtained from AdjusterService
-  method = 'haclustwd2';
-  serviceUrl = 'https://jmacura.ml/ws/georeport/';
+  method: string;
+  serviceUrl: string;
   constructor(
     private adjusterService: AdjusterService,
     private hsConfig: HsConfig,
@@ -92,6 +91,8 @@ export class AppService {
     private hsSidebarService: HsSidebarService,
     private hsPanelContainerService: HsPanelContainerService
   ) {
+    this.method = this.adjusterService.method;
+    this.serviceUrl = this.adjusterService.serviceBaseUrl + 'georeport/';
     this.nuts3Layer.set('popUp', {
       attributes: [
         {attribute: 'CNTR_CODE', label: 'Country'},