Agm-Direction icon indicating copy to clipboard operation
Agm-Direction copied to clipboard

Google API called twice at first call.

Open rogeriosouzax opened this issue 3 years ago • 1 comments

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 avatar Feb 05 '21 17:02 rogeriosouzax

Hey man! I also have this problem.

pedropagotto avatar Feb 05 '21 18:02 pedropagotto