mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
235 stars 124 forks source link

fix: request is loaded after removeRoutes() is called #285

Closed Hassan950 closed 1 year ago

Hassan950 commented 2 years ago

Currently the removeRoutes() function doesn't abort any ongoing requests which may cause the symbols to be redrawn on the map after calling removeRoutes()

This bug occurs frequentally to users with slow internet as the request may take longer time to be loaded while the removeRoutes() was already called

aaarafat commented 2 years ago

Currently the removeRoutes() function doesn't abort any ongoing requests which may cause the symbols to be redrawn on the map after calling removeRoutes()

This bug occurs frequentally to users with slow internet as the request may take longer time to be loaded while the removeRoutes() was already called

Needed 👍