-
Notifications
You must be signed in to change notification settings - Fork 20
Compositions panel
Dailis edited this page Oct 7, 2021
·
5 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: {
composition_browser: true //(true by default)
}
});
}
}
Add HsCompositionsModule import:
import {HsCompositionsModule} from 'hslayers-ng';
@NgModule({
imports: [HsCompositionsModule],
})
export class YourAppModule {}
Add HsCompositionsComponent component:
import {HsLayoutService, HsCompositionsComponent} from 'hslayers-ng';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createPanel(HsCompositionsComponent, {});
}
}
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)