ewoken / Leaflet.MovingMarker

A Leaflet plug-in to create moving marker
MIT License
342 stars 177 forks source link

autocalculate duration per line segment #6

Closed emmanuelroecker closed 8 years ago

emmanuelroecker commented 9 years ago

Durations parameter can be the total duration of the transporation. (not only an array of duration per line segment).

If Durations parameter is a number (not an array of number) _createDurations function is called and autocalculate duration per line segment.

ewoken commented 8 years ago

Good idea ! Thanks ! :-)