|
@@ -17,7 +17,6 @@ import {SdmDihService} from './graphs/sdm-dih.service';
|
|
|
export class HslayersAppComponent {
|
|
export class HslayersAppComponent {
|
|
|
/* You can name your app as you like or not at all */
|
|
/* You can name your app as you like or not at all */
|
|
|
title = 'hslayers-application';
|
|
title = 'hslayers-application';
|
|
|
- selectedRegion: string;
|
|
|
|
|
constructor(
|
|
constructor(
|
|
|
/* Inject here all modules from HSLayers-NG which you intend to use */
|
|
/* Inject here all modules from HSLayers-NG which you intend to use */
|
|
|
public hsConfig: HsConfig /* public properties are visible in the template */,
|
|
public hsConfig: HsConfig /* public properties are visible in the template */,
|
|
@@ -25,9 +24,6 @@ export class HslayersAppComponent {
|
|
|
private hsToastService: HsToastService,
|
|
private hsToastService: HsToastService,
|
|
|
public sdmDihService: SdmDihService
|
|
public sdmDihService: SdmDihService
|
|
|
) {
|
|
) {
|
|
|
- sdmDihService.dataLoads.subscribe(
|
|
|
|
|
- () => (this.selectedRegion = this.sdmDihService.regions[0])
|
|
|
|
|
- );
|
|
|
|
|
/* Define and update the HsConfig configuration object */
|
|
/* Define and update the HsConfig configuration object */
|
|
|
this.hsConfig.update({
|
|
this.hsConfig.update({
|
|
|
datasources: [
|
|
datasources: [
|