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

prevent errors when clear is called during a fetch #191

Closed Miguel-Sanches closed 1 year ago

Miguel-Sanches commented 1 year ago

when clear() is called, _waypoints is emptied, which could cause problems if called during a fetch, as it would prevent the waypoint data update from working.