-
Notifications
You must be signed in to change notification settings - Fork 20
Info component
Filip Leitner edited this page Apr 30, 2024
·
3 revisions
List of useful config parameters for the info component can be found here:
import {HsConfig} from 'hslayers-ng/config';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsConfig: HsConfig) {
this.HsConfig.update({
panelsEnabled: {
compositionLoadingProgress: true //(false by default)
}
});
}
}
Add HsInfoModule import:
import {HsInfoModule} from 'hslayers-ng/components/info';
@NgModule({
imports: [HsInfoModule],
})
export class YourAppModule {}
Add HsInfoComponent component:
import {HsLayoutService } from 'hslayers-ng/core';
import {HsInfoModule} from 'hslayers-ng/components/info';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createOverlay(HsInfoComponent, {});
}
}
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)