-
Notifications
You must be signed in to change notification settings - Fork 20
Toolbar component
Dailis edited this page Oct 25, 2021
·
4 revisions
List of useful config parameters for the sidebar component can be found here:
import {HsConfig} from 'hslayers-ng';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsConfig: HsConfig) {
this.HsConfig.update({
componentsEnabled: {
toolbar: true, //(true by default)
guiOverlay: true //(true by default)
}
panelsEnabled: {
toolbar: true //(true by default)
}
});
}
}
Add HsToolbarModule import:
import {HsToolbarModule} from 'hslayers-ng';
@NgModule({
imports: [HsToolbarModule],
})
export class YourAppModule {}
Add HsToolbarComponent component:
import {HsLayoutService, HsToolbarComponent} from 'hslayers-ng';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createOverlay(HsToolbarComponent, {});
}
}
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)