-
Notifications
You must be signed in to change notification settings - Fork 20
Print panel
Filip Leitner edited this page Apr 30, 2024
·
3 revisions
The print panel allows the user to print the rendered map and specify its name in the title.

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({
panelsEnabled: {
print: true //(true by default)
}
});
}
}
Add HsPrintModule import:
import {HsPrintModule} from 'hslayers-ng/modules/print';
@NgModule({
imports: [HsPrintModule],
})
export class YourAppModule {}
Add HsPrintComponent component:
import {HsPrintModule} from 'hslayers-ng/modules/print';
import {HsLayoutService } from 'hslayers-ng/core';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createPanel(HsPrintComponent, {});
}
}
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