Leaflet.MultiOptionsPolyline
Leaflet.MultiOptionsPolyline copied to clipboard
Doesn't paint lines for the first and last points properly.
- If the first few points have the same "fnContext" result (0 for example), they will be painted in the color of the first point which has a different result (1 for example).
- The mainline ends with the color of a penultimate point (not last).
Hi @jktu2870 can you tell me please why you already closed this PR? I had a short view of the code and it looks good to me, though I haven't tested it.
Hi @hgoebl It's nice to know you estimated my PR as good. I closed PR because I have doubt about performance since "fnContext" now cause twice per iteration. Also, I didn't test this solution for every case MultiOptionsPolyline can be used for, only for examples on the demo page and for my specific task. I'll reopen PR, if you have time to test it then it would be great.