You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
rogeriosouzax
changed the title
Google API called twice in a child component.
Google API called twice at first call.
Feb 5, 2021
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!
The text was updated successfully, but these errors were encountered: