Description
maptalks's version used: 0.42.2, browser firefox or chrome
AnimationTo can create bearing changes of almost a full circle when changing around 180 and -180 degrees.
When I try to animate a route which goes from north to south, the bearing can change from around 180 to -180. e.g. a change from -178 to 177 is required which means a change of 5 degrees.
The animation is generating frames which go from -178 to 177 by positive increments of the bearing leading to a delta angle of 355 degrees instead of 5.
Please have a look of my proposed changes in Map.Anim.js which make sure the bearing change is always below 180 degrees,
Please have a look at my test html script which demonstrates the behaviour and works as expected after applying the proposed change.
Apart from this small bug, the library works extremely well and is easy to use. Thanks.