Answer the question
In order to leave comments, you need to log in
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 addAnnotation
works 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
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 questionAsk a Question
731 491 924 answers to any question