Ti.Map annotations should be allowed to animate. This brings better UX to the map.
Implementation, based on Stackoverflow, seems simple enough:
https://stackoverflow.com/questions/26015904/how-to-animate-mapview-annotations-from-one-location-to-another
on ios:
-(void) animateAnnotation:(MyAnnotation*)annotation{
[UIView animateWithDuration:2.0f
animations:^{
annotation.coordinate = newCordinates;
}
completion:nil];
}
https://stackoverflow.com/a/42057162/249710
on Android:
LatLng fromLocation = new LatLng(38.5, -100.4); // Whatever origin coordinates
LatLng toLocation = new LatLng(37.7, -107.7); // Whatever destination coordinates
Marker marker = mMap.addMarker(new MarkerOptions().position(firstLocation));
MarkerAnimation.animateMarkerToICS(marker, toLocation, new LatLngInterpolator.Spherical());
PR: https://github.com/appcelerator-modules/ti.map/pull/294
Verified on below environment: *Mac OS X*= 10.15 *Node.js Version* = 12.16.0 *CLI Version* = 5.2.2 *SDK Version* = 9.1.0.v20200514121733 *ti.map version* = 5.0.2 (Android) *Emulator*: Nexus6_API27 (SDK API: 29) Working fine so closing this ticket. (Attached log for reference) And merging above PR to master