Z
Z
zzasdee2015-09-24 23:41:14
Objective-C
zzasdee, 2015-09-24 23:41:14

How to add annotations to Yandex Map without animation?

Good for you. There was a need to display different pins on the map with a fairly small interval. We use yandex mapkit and the method addAnnotationworks fine, with one exception. When annotation is added, the view appears on the map with an animation of zooming in from a central point. I need them to roughly speaking instantly appear on the map without any animations.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zzasdee, 2015-09-27
@zzasdee

I'll answer my own question. Everything is ugly simple :\

- (YMKAnnotationView *)mapView:(YMKMapView *)aMapView viewForAnnotation:(NSObject<YMKAnnotation> *)anAnnotation
{
    YMKPinAnnotationView *view = [[YMKPinAnnotationView alloc] initWithAnnotation:anAnnotation
                                                                  reuseIdentifier:@"pinAnnotationView"];
 
    view.animatesDrop = NO;

    return view;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question