akexorcist / GoogleDirectionLibrary

[Android] Library for Google Direction API for Google Maps Android API v2
Apache License 2.0
571 stars 174 forks source link

Redraw Polylines #52

Closed mdelclaro closed 6 years ago

mdelclaro commented 6 years ago

Hi, is there a way to redraw the polylines when the current direction is updated? I am currently removing all the polylines and adding it again but just with a different "from" location. This does not have a good performance, and also consumes a lot of the API. I wish I could only change the "from" location so it doesn't need to redraw all of it. Thanks.

akexorcist commented 6 years ago

If you don't re-request the direction from API. There will be a problem when user walk away from your path.