Skip to content

Commit

Permalink
fix(demo): directions add required search sources
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed May 16, 2024
1 parent 4fd5932 commit 3f251e7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions projects/demo/src/app/geo/directions/directions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { MatGridListModule } from '@angular/material/grid-list';

import { AuthService } from '@igo2/auth';
import {
IgoDirectionsModule,
DirectionsComponent,
IgoMap,
IgoSearchModule,
LayerService,
MAP_DIRECTIVES,
MapService,
Expand All @@ -17,6 +16,8 @@ import {
TileLayer,
TileLayerOptions,
provideDirection,
provideSearch,
withIChercheSource,
withOsrmSource
} from '@igo2/geo';

Expand All @@ -35,10 +36,12 @@ import { ExampleViewerComponent } from '../../components/example/example-viewer/
ExampleViewerComponent,
MatGridListModule,
MAP_DIRECTIVES,
IgoDirectionsModule,
IgoSearchModule
DirectionsComponent
],
providers: [provideDirection(withOsrmSource())]
providers: [
provideDirection(withOsrmSource()),
provideSearch([withIChercheSource()])
]
})
export class AppDirectionsComponent {
public map: IgoMap = new IgoMap({
Expand Down

0 comments on commit 3f251e7

Please sign in to comment.