Dual-color-Polyline-Animation icon indicating copy to clipboard operation
Dual-color-Polyline-Animation copied to clipboard

cant change color of the line, can you pls help?

Open elifozoglu98 opened this issue 2 years ago • 1 comments

elifozoglu98 avatar Mar 21 '22 12:03 elifozoglu98

Hi. You read Readme?

Additional: You can change the color and animation time and the width of the polyline by passing :

MapAnimator.setPrimaryLineColor(color)
MapAnimator.setSecondaryLineColor(color) 
MapAnimator.setPercentCompletion(@IntegerRes time: Int) default is 2500 //amount of time to draw the initial polyline 
MapAnimator.setColorFillCompletion(@IntegerRes time: Int) default is 1800 //amount of time to refill the primary color
MapAnimator.setDelayTime(@IntegerRes time: Int) default is 200 //amount of time for delaying to run the sequenceof animation
MapAnimator.setPrimaryLineCompletion(@IntegerRes time: Int) default is 2000 //amount of time required for the animation to reach from point A to B
MapAnimator.setPolylineWidth(width: Float) default is 8f 

If you are calling these methods, call it before animateRoute() method call else it won't reflect.

lUjek-Sh avatar Apr 16 '22 17:04 lUjek-Sh