-
Notifications
You must be signed in to change notification settings - Fork 20
Feature table panel
Dailis edited this page Oct 8, 2021
·
11 revisions
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)
}
});
}
}
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, {});
}
}
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)