rubenspgcavalcante / leaflet-ant-path

🌿🐜 Creates a leaflet polyline with a 'ant-path' animated flux
http://rubenspgcavalcante.github.io/leaflet-ant-path
MIT License
467 stars 80 forks source link

Using polylineDecorator with ant-path is not working #170

Open EricG-Personal opened 2 years ago

EricG-Personal commented 2 years ago

Type:

Environment:

https://unpkg.com/leaflet@1.8.0/dist/leaflet.js https://unpkg.com/leaflet-ant-path@1.3.0/dist/leaflet-ant-path.js https://unpkg.com/leaflet-polylinedecorator@1.6.0/dist/leaflet.polylineDecorator.js

I'm going to open a PR:

Description: I am not sure where the issue is. I have a codepen demonstrating the issue at https://codepen.io/ericg97477/pen/vYRGYVr

With one polyline, I can decorate it with an arrow.

With the second polyline, I am creating it with anyPath, but cannot decorate with an arrow.

It would be nice if I could use both polylineDecorator together with ant-path.

mmmmasdasd commented 1 year ago

I have a similar problem, have you solved it yet?