-
Notifications
You must be signed in to change notification settings - Fork 20
Toolbar component
Filip Leitner edited this page Apr 30, 2024
·
4 revisions
List of useful config parameters for the toolbar 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({
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/components/toolbar';
@NgModule({
imports: [HsToolbarModule],
})
export class YourAppModule {}
Add HsToolbarComponent component:
import {HsToolbarModule} from 'hslayers-ng/components/toolbar';
import {HsLayoutService } from 'hslayers-ng/core';
@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)