-
Notifications
You must be signed in to change notification settings - Fork 20
Info component
Dailis edited this page Oct 8, 2021
·
3 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: {
compositionLoadingProgress: true //(false by default)
}
});
}
}
Add HsInfoModule import:
import {HsInfoModule} from 'hslayers-ng';
@NgModule({
imports: [HsInfoModule],
})
export class YourAppModule {}
Add HsInfoComponent component:
import {HsLayoutService, HsInfoComponent} from 'hslayers-ng';
@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)