Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2450] Ti.Map: Allow annotation to be animated to new location

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-09-08T17:24:36.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.2.0
ComponentsMap
Labels2020-Q2, animations, annotations, map, ti.map
ReporterRene Pot
AssigneeAnil Shukla
Created2018-08-14T15:09:59.000+0000
Updated2020-09-08T17:24:36.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. Michael Gangolf 2018-08-14

    Here is a full class for Android: https://gist.github.com/barbeau/50bb996c8c7c5b9d4ea0 that implements a animateMarkerTo function.
  2. Hans Knöchel 2018-08-15

    Should be ideally easy to do, but the core team currently needs to focus on more core-tickets that require the full attention at this point. Any PR's are welcome and get be reviewed.
  3. Marian Kucharcik 2020-04-02

    Hi guys, any news on this? I receive notifications about Sprint and Assignee changes from time to time, but no change/progress in code... Thank you
  4. Rene Pot 2020-04-02

    Hi [~max87], when there's sprints and people assigned, progress is made. You'll be notified as well when status changes from to in progress and resolved. There's movement on the ticket already :)
  5. Anil Shukla 2020-04-09

    PR - https://github.com/appcelerator-modules/ti.map/pull/293
  6. Samir Mohammed 2020-09-03

    FR Passed, waiting on Jenkins build.
  7. Samir Mohammed 2020-09-08

    *Closing ticket*. Fix verified in SDK version 9.2.0.v20200908050955, and 9.3.0.v20200908051946. ti.map release: https://github.com/appcelerator-modules/ti.map/releases/tag/v3.4.0-iphone *Test and other information can be found at:* https://github.com/appcelerator-modules/ti.map/pull/293

JSON Source