added some sidebar icons

This commit is contained in:
Janis Meister
2022-01-26 14:18:33 +01:00
parent 07ecac249f
commit d8a6781ae0
18 changed files with 205 additions and 59 deletions

View File

@@ -1,6 +1,7 @@
import { Component, ViewChild, } from '@angular/core';
import { Osrm } from './interfaces/osrm';
import { MapComponent } from './map/map.component';
import { RouteListComponent } from './route-list/route-list.component';
@Component({
@@ -14,10 +15,11 @@ import { MapComponent } from './map/map.component';
export class AppComponent {
title = "Street Map";
@ViewChild('mapRef') mapCompopnent!: MapComponent;
@ViewChild('routeListRef') routeListCompopnent!: RouteListComponent;
onSearchResponse($event: Osrm): void {
this.mapCompopnent.drawPath($event);
this.mapCompopnent.updateSidebar($event);
this.routeListCompopnent.updateSidebar($event);
}
}