Skip to content

Google API called twice at first call. #106

@rogeriosouzax

Description

@rogeriosouzax

Hello guys,

I'm using agm-direction in my angular project to calculate the route between point A to point B using a modal (a child component). By default, the modal brings information about 'DRIVING' route and the user can also select other means of transportation.

Then I realize that the first time I open my modal it calls twice the google API. And with the modal opened if we try to change the "travelmode" then it calls the API only a single time.

Does someone else had this kind of behavior in your project?

Thanks guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates that a maintainer wants help on an issue or pull request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions