Igor-Vladyka / leaflet.motion

A simple tool to animate polylines and polygons in different way
https://igor-vladyka.github.io/leaflet.motion/
MIT License
207 stars 44 forks source link

Don't simplify line before drawing #21

Closed Patabugen closed 2 years ago

Patabugen commented 3 years ago

Hey,

I'm having an issue whereby my Polyline (which has about 13,000 LatLngs, but I have the same issue if I clip it to just the first 200) is simplified during the animaiton - then smoothed out afterwards.

During Motion: image

After Motion: image

I've tried setting the smoothFactor and noClip options but that doesn't seem to help.

I've been digging through the Motion source code to see if I can find anything which might be causing it, but I think this is more to do with how the Polyline acts when being used by Motion.

Has anyone else had this issue, or have any suggestions for how to change it?

Igor-Vladyka commented 2 years ago

Hey,

I have time now to make it work, need some time for refactoring and testing it. It will be release in next major version.

Igor-Vladyka commented 2 years ago

Hey @Patabugen . Please check latest version, with improved line rendering.