Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agm-direction provideRouteAlternatives not working #101

Open
AkramFaiz opened this issue Aug 26, 2020 · 1 comment
Open

agm-direction provideRouteAlternatives not working #101

AkramFaiz opened this issue Aug 26, 2020 · 1 comment
Labels
question Indicates that an issue or pull request needs more information

Comments

@AkramFaiz
Copy link

agm-direction provideRouteAlternatives not working.

<agm-map
[latitude]="lat" [longitude]="lng" [zoom]="zoom">
<agm-marker [latitude]="lat" [longitude]="lng">
<agm-direction
[origin]="origin"
[destination]="destination"
[waypoints]="waypoints"
[provideRouteAlternatives]="altRoutes">

here altRoutes is set to 'true' (boolean)

@explooosion explooosion added bug Indicates an unexpected problem or unintended behavior question Indicates that an issue or pull request needs more information and removed bug Indicates an unexpected problem or unintended behavior labels Sep 23, 2020
@explooosion
Copy link
Owner

explooosion commented Sep 23, 2020

Hi @AkramFaiz

According to the Directions Requests, alternative routes won't show at the same time.

You can use onResponse event to get results, or check out the issue #81

  <agm-direction
   ...
   (onResponse)="onResponse($event)"
   >
  </agm-direction>
  public onResponse(event): void {
    console.log(event);
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Indicates that an issue or pull request needs more information
Projects
None yet
Development

No branches or pull requests

2 participants