elfalem / Leaflet.curve

A Leaflet plugin for drawing Bézier curves and other complex shapes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trace points deviate from curve when zooming in

elfalem opened this issue · comments

          Here's the use case: 

Zoom out to zoom level 3 and click on Trace Curves
leaflet-zoom-3

Then start to zoom in; you'll see that after a certain zoom level, the deviation starts to be perceptive.
See the images below:

leaflet-zoom-9
leaflet-zoom-12

Originally posted by @aasilva in #20 (comment)

I have exactly the same issue.

I'm also having this same issue.

For my purposes, I hackily avoided the problem by making the Bezier line opaque and drawing a polyline and arrowhead decorators along the sampled route.