-
Notifications
You must be signed in to change notification settings - Fork 20
Trip planner panel
Filip Leitner edited this page Apr 30, 2024
·
4 revisions
List of useful config parameters for the trip planner panel 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({
panelsEnabled: {
tripPlanner: true //(false by default)
}
});
}
}
Add HsTripPlannerModule import:
import {HsTripPlannerModule} from 'hslayers-ng/components/trip-planner';
@NgModule({
imports: [HsTripPlannerModule],
})
export class YourAppModule {}
Add HsTripPlannerComponent component:
import {HsTripPlannerModule} from 'hslayers-ng/components/trip-planner';
import {HsLayoutService } from 'hslayers-ng/core';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createPanel(HsTripPlannerComponent, {});
}
}
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)