Annotation view movement example
A view annotation that is animated along a looping path. Punted from the initial v3.3.0 push in https://github.com/mapbox/ios-sdk-examples/pull/23.
/cc @pveugen
https://github.com/mapbox/mapbox-gl-native/issues/5645 discusses how to implement this example, more or less.
A developer is requesting this example in mapbox/mapbox-gl-native#6206.
Another request for an annotation animation example in https://github.com/mapbox/mapbox-gl-native/issues/8378
@jmkiley and I spent a little time investigating this so I thought I'd add some of that context while it is still in my head!
There is currently an issue with animating annotation views offscreen. So, if this example is completed before that is fixed, don't "go long"!
Also, although the approach of using actionForLayer:forKey: works well in most cases and nicely co-locates a view's animation description within the view class itself, it does not naturally play well if you need to animate callouts along with the view and you intend to take advantage of the implicit animation that can happen when an annotation view's annotation coordinate property is changed. The issue is that the callout moves directly to the new coordinate but the view will (usually) take its time along the animation path:

I think that, in most if not all MapKit examples that I've seen, a UIView animation block approach is suggested. That approach also works well with our objects:

So, it may make sense to use a UIView animation block in this example.
Updated documentation on which annotation class to use for coordinate animate available here: https://docs.mapbox.com/ios/maps/overview/markers-and-annotations/
Its been three years, but noting that we still want to have this example :) external contributions are most welcome!