elfalem / Leaflet.curve

A Leaflet plugin for drawing Bézier curves and other complex shapes.
Other
218 stars 52 forks source link

Changing line weight via setStyle() blows out #46

Closed vpithart closed 2 years ago

vpithart commented 2 years ago

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.

vpithart commented 2 years ago

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).

elfalem commented 2 years ago

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