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

Use placemark's polyline in favor of mapbox's polyline #212

Closed smellyshovel closed 10 months ago

smellyshovel commented 11 months ago

There's a new polyline package from Placemark:

As highlighted in the readme, it is maintained, it uses [lon, lat] order, it doesn't have any depencencies and it is typed.

Using it would simplify the decoding process from decode(geometry).map((coordinate) => coordinate.reverse()) to decode(geometry).

I'd like to use it in my own codebase but I don't want to use both since Mapbox's package is a dependency of maplibre-gl-directions.

So it'd be great if you would consider switching packages.

Originally posted by @clementmas in https://github.com/maplibre/maplibre-gl-directions/discussions/211

smellyshovel commented 11 months ago

@clementmas would you like me to set you as assignee?