Skip to content

Feature table panel

Dailis edited this page Oct 8, 2021 · 11 revisions

Feature table

/img/feature-table.png

Enable/disable

import {HsConfig} from 'hslayers-ng';
@Component({
  selector: 'your-app-component',
  templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
  constructor(hsConfig: HsConfig) {
    this.HsConfig.update({
      panelsEnabled: {
        feature_table: true //(false by default)
      }
    });
  }
}

If not using HslayersModule containing all components

Add HsFeatureTableModule import:

import {HsFeatureTableModule} from 'hslayers-ng';
@NgModule({
  imports: [HsFeatureTableModule],
})
export class YourAppModule {}

Add HsFeatureTableComponent component:

import {HsLayoutService, HsFeatureTableComponent} from 'hslayers-ng';
@Component({
  selector: 'your-app-component',
  templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
  constructor(hsLayoutService: HsLayoutService) {
    hsLayoutService.createPanel(HsFeatureTableComponent, {});
  }
}
Clone this wiki locally