maplibre / maplibre-gl-directions

A plugin to show routing directions on a MapLibre GL JS map
https://maplibre.org/maplibre-gl-directions/
MIT License
72 stars 16 forks source link

Bug fix: Fixed route line building #221

Closed Fsss126 closed 8 months ago

Fsss126 commented 8 months ago

Bug If route line's coordinates don't match with the final snap point, the remaining coordinates are not added to the outpur geometry. If there's only two snappoints and the last is not found the resulting geometry's coordinates consists of only one point and the line is not being drawn.

Solution Fixed buildRoutelines method to account for this edge case