Dual-color-Polyline-Animation
Dual-color-Polyline-Animation copied to clipboard
cant change color of the line, can you pls help?
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.