bbecquet / Leaflet.PolylineOffset

Apply a relative pixel offset to polylines without changing their coordinates.
MIT License
152 stars 32 forks source link

Fix turn-around issues and make algorithms more able to cope with zero-distance calculations #6

Closed sanderd17 closed 9 years ago

sanderd17 commented 9 years ago

I cleaned up some algorithms.

Now the library should behave better wrt zooming out (still not perfect though), and it should also stop drawing useless circles (see https://github.com/tyrasd/overpass-ide/pull/117)

The overall behaviour shouldn't be altered.

bbecquet commented 9 years ago

Hi! I'm away from my dev env this week-end so I can't test it a bit before merging, but I will do it quickly in the next days. Anyway it seems like a far cleaner implementation than mine (I confess I'm a bit fuzzy with angle computations), which is a great improvement! Thank you very much for this contribution.