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

[GLJS-781] Improved performance of markers dragging #316

Closed underoot closed 3 months ago

underoot commented 3 months ago

Created snapshot of state and make comparision to understand that we need to update only markers at the moment. Helped improve performance of markers dragging in Safari

Before: https://github.com/mapbox/mapbox-gl-directions/assets/2480721/d28d9156-4e5e-4ad3-9329-d1574b1fa180

After: https://github.com/mapbox/mapbox-gl-directions/assets/2480721/ea18fd57-6833-420f-b4dc-12524a4ecb09