[TIMOB-13340] iOS: Allow selectAnnotation without animation
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 3.0.2 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Rafael Kellermann Streit |
| Assignee | Unknown |
| Created | 2013-02-15T09:54:05.000+0000 |
| Updated | 2018-02-28T20:03:26.000+0000 |
Description
When you are using MapView with *animate* as *true*, all methods used in MapView uses this animate parameter, and we can't change it in some specific method.
For example, if I create a MapView, like this:
var mapView = Ti.Map.createView({
animate: true
});
This code will be animated:
mapView.selectAnnotation( someAnnotation, { animated: false } );
Would be awesome if we can remove the animation in some specific methods, like this in example and others, to refresh MapView without user perception.
*It works with a little hack*
mapView.animate = false;
mapView.selectAnnotation( someAnnotation );
mapView.animate = true;
No comments