Animation in Mapbox Map

I made a map using Mapbox here: link with animation for airline routes between a departure airport and all of its direct destinations. However, the animation ONLY works once with the the ‘click’ on the first destination.

Can anyone help?

Thanks,

Hitting f12 shows this error. Are you defining am ID name more than once?

Once an animation is finished how are you resetting the start end

image

error: There is already a source with this ID

1 Like

I checked and didn’t see that I have defined any ID name more than once.

I guess I have to addEventListener to update the new destination somehow…

1 Like

As I guessed earlier I have added an EventListener to update the new destination and it works perfectly now.

1 Like