slutske22 / leaflet-spline

MIT License
14 stars 1 forks source link

Can be used with other plugins? #3

Closed eusonlito closed 1 year ago

eusonlito commented 1 year ago

Maybe is a Leaflet related issue, but... can be used this plugin toghether other plugins, like https://github.com/Oliv/leaflet-polycolor

Something as:

const line = L.polycolor([], options)
    .spline()
    .addTo(layer);

Thanks!

slutske22 commented 1 year ago

Probably not right out of the box. You'd need to adjust the source code to do that. But considering the number of plugins that are available for leaflet, that's something you would need to do on a case-by-case basis, and not an issue with this plugin.

eusonlito commented 1 year ago

Ok, thanks!