rubenspgcavalcante/leaflet-ant-path

Using polylineDecorator with ant-path is not working

EricG-Personal opened this issue · 1 comments

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: macOS 12.4
  • Browser: Chrome 103.0.5060.53
  • Library Version:

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:

  • yes
  • no

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.

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