GLMapAnimation


@interface GLMapAnimation : NSObject

GLMapAnimation defines animation of objects parameters that will be executed synchronously.

  • Initializes GLMapAnimation

    Declaration

    Objective-C

    - (instancetype)init;
  • Transition of animation. Default transition is Ease In - Ease Out

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) GLMapTransitionFunction transition;
  • Duration of animation. Default duration is 0.5 seconds.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) double duration;
  • Focus point of zoom and rotate animations

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) GLMapPoint focusPoint;
  • If YES flyTo animation will be used if new mapCenter is set and previous flyTo animation is not finished yet

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) BOOL continueFlyTo;
  • Sets new position of drawable

    Declaration

    Objective-C

    - (void)setPosition:(GLMapPoint)position forDrawable:(GLMapDrawable *)drawable;

    Parameters

    drawable

    drawable to modify

    position

    new position

  • Sets new scale of drawable

    Declaration

    Objective-C

    - (void)setScale:(double)scale forDrawable:(GLMapDrawable *)drawable;

    Parameters

    drawable

    drawable to modify

    scale

    new scale

  • Sets new angle of drawable

    Declaration

    Objective-C

    - (void)setAngle:(float)angle forDrawable:(GLMapDrawable *)drawable;

    Parameters

    drawable

    drawable to modify

    angle

    new angle

  • Sets new offset of drawable

    Declaration

    Objective-C

    - (void)setOffset:(CGPoint)offset forDrawable:(GLMapDrawable *)drawable;

    Parameters

    offset

    new offset

    drawable

    drawable to modify

  • Moves to new center with animation optimized for long distances.

    Declaration

    Objective-C

    - (void)flyToPoint:(GLMapPoint)point;

    Parameters

    point

    Target location.

  • Moves to new center with animation optimized for long distances.

    Declaration

    Objective-C

    - (void)flyToGeoPoint:(GLMapGeoPoint)geoPoint;

    Parameters

    geoPoint

    Target location.

  • Defines the scrolling speed at the end of map scrolling movement.

    Declaration

    Objective-C

    - (void)decelerate:(GLMapPoint)velocity;

    Parameters

    velocity

    Initial velocity of deceleration

  • Cancels anmation

    Declaration

    Objective-C

    - (void)cancel:(BOOL)setFinalValues;

    Parameters

    setFinalValues

    if YES aimatied values will be set to it’s final values.