Agm-Direction
Agm-Direction copied to clipboard
Google API called twice at first call.
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!
Hey man! I also have this problem.