-
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)
- Add data
- Compositions
- Draw
- Feature table
- Language switcher
- Layer manager
- Legend
- Measure
- Map Swipe
- Search
- Share map (permalink)
- Query (feature info)
- Save map composition
- Trip planner
- App config parameters
- Cesium config parameters
- Layer config parameters
- SCSS variables
- URL parameters