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

midpoint automatically

spmsupun opened this issue · comments

when going to one curve line using M and Q we have to put midpoint statically.
EX:

L.curve(
            [
                'M', latlng1,
                'Q', latlng1,
                [14.33,23.66]//we don't know  this
            ], dash_straight).addTo(this.map);

so need a way to create that midpoint automatically from the plugin.
using your plugin I created sample project to do that https://github.com/lifeeka/leaflet.bezier/tree/supun-dev

Interesting project. Thanks.