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

Google API called twice at first call. #106

Open
rogeriosouzax opened this issue Feb 5, 2021 · 1 comment
Open

Google API called twice at first call. #106

rogeriosouzax opened this issue Feb 5, 2021 · 1 comment
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request

Comments

@rogeriosouzax
Copy link

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!

@rogeriosouzax rogeriosouzax changed the title Google API called twice in a child component. Google API called twice at first call. Feb 5, 2021
@pedropagotto
Copy link

pedropagotto commented Feb 5, 2021

Hey man!
I also have this problem.

@explooosion explooosion added the help wanted Indicates that a maintainer wants help on an issue or pull request label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants