-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Description
When using this lib, I noticed that there was a systematic delay when moving on the map:
- On drag start, the particles stop moving
- On drag end, the particles jump to the position, still not moving
- There is a delay after which the particles go back to their original place and restart moving
This can be experienced in the demo.
I noticed the few lines that are responsible for this behavior, at the end of onDrawLayer (L.VelocityLayer.js):
this._timer = setTimeout(function() {
self._startWindy();
}, 750); // showing velocity is delayedThe 750ms delay is actually intended. By removing it, there is no delay anymore and no other problem seems to appear.
Was there a specific reason for introducing this delay?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels