mirror of
				https://github.com/DerTyp7/street-map-typescript.git
				synced 2025-10-31 13:47:08 +01:00 
			
		
		
		
	added some sidebar icons
This commit is contained in:
		| @@ -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); | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Janis Meister
					Janis Meister