I checked your code and it looks like you are using the leaflet API to draw lines. Because of this, I decided to write a somewhat general function that animated these lines. (By the way, I'm confused why the API uses route tags instead of line tags, but I rolled with it.)
Here's the code: http://jsfiddle.net/mihaibirsan/Wzvre/
I would like to polish it a bit, but I wanted to put my foot on the door for this generosity .: D (I will go back to polishing and send the update in a few hours, as soon as I have done some other work.)
Mihai Alexandru Bรฎrsan
source share