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

Changing line weight via setStyle() blows out

vpithart opened this issue · comments

With leaflet v1.7.1 and Leaflet.curve 1.0.0, calling setStyle to change line weight blows out.
Reproducible in this codepen.

 Uncaught TypeError: this._updateBounds is not a function
    setStyle Path.js:109

This is where the error occurs.

I'm sorry, wrong repository. This bug belongs to the forked https://github.com/onikiienko/Leaflet.curve.
(that one is a default you get via npm install leaflet-curve).

Yeah that's an old fork which I don't think is maintained. I recommend using the package @elfalem/leaflet-curve instead.