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