A lot of people should have similar experience, call the car, want to see how far away from me? But the mobile phone screen of the car is not motionless, is a jump in the drift.
At present, most of the products on the market "trajectory smooth movement" do not do well.
On the market only a quick taxi and a car to achieve a smooth move, then this is how to do it?
-------------------------------------------------------------------------------------------------------
iOS Trajectory smoothing
Click to view demo and source code
Ios_movingannotation_demo
Annotation moving and turning animation-View Demo open Test.xcworkspace file
Using tutorials
- Add code in Movingannotationsource folder
- Using interfaces
/* */-(void) Addtrackinganimationforpoints: (Nsarray *) points Duration: ( Cftimeinterval) duration;
Where the trace point type is:
@interface Tracingpoint:nsobject /* */@property (nonatomic) cllocationcoordinate2d coordinate; /* */@property (nonatomic) Cllocationdirection course; @end
Note: Multiple calls to add an animation interface, in order to perform the added animation sequentially. See the Project Test folder.
Click to view demo and source code
-------------------------------------------------------------------------------------------------------
Android Trajectory Smoothing
Click to view demo and source code
Android_move_example
Point smoothing Movement effect based on the 3D API of the German map
Click to view demo and source code
How does the "German map SDK" achieve smooth movement of the trajectory?