Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2595] iOS | Allow annotation to be animated to new location

GitHub Issuen/a
TypeSub-task
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-06-08T06:27:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSatinder Pal Singh
AssigneeAnil Shukla
Created2020-04-07T12:05:04.000+0000
Updated2020-06-08T06:27:40.000+0000

Description

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());

Comments

  1. Anil Shukla 2020-06-03

    PR - https://github.com/appcelerator-modules/ti.map/pull/293
  2. Satinder Pal Singh 2020-06-08

    Validation will be included in the main task MOD-2450

JSON Source