GLMapAnimation
@interface GLMapAnimation : NSObject
GLMapAnimation defines animation of objects parameters that will be executed synchronously.
-
Initializes GLMapAnimation
Declaration
Objective-C
- (instancetype)initWithCompletion:(GLMapAnimationCompletionBlock)completion; -
Transition of animation. Default transition is Ease In - Ease Out
Declaration
Objective-C
@property (atomic, assign, unsafe_unretained, readwrite) GLMapTransitionFunction transition; -
Duration of animation. Default duration is 0.5 seconds.
Declaration
Objective-C
@property (atomic, assign, unsafe_unretained, readwrite) double duration; -
Focus point of zoom and rotate animations
Declaration
Objective-C
@property (atomic, assign, unsafe_unretained, readwrite) GLMapPoint focusPoint; -
If YES flyTo animation will be used if new mapCenter is set and previous flyTo animation is not finished yet. Default value YES.
Declaration
Objective-C
@property (atomic, assign, unsafe_unretained, readwrite) BOOL continueFlyTo; -
Sets new position of drawable
Declaration
Objective-C
- (void)setPosition:(GLMapPoint)position forDrawable:(GLMapDrawable *)drawable;Parameters
drawabledrawable to modify
positionnew position
-
Sets new scale of drawable
Declaration
Objective-C
- (void)setScale:(double)scale forDrawable:(GLMapDrawable *)drawable;Parameters
drawabledrawable to modify
scalenew scale
-
Sets new angle of drawable
Declaration
Objective-C
- (void)setAngle:(float)angle forDrawable:(GLMapDrawable *)drawable;Parameters
drawabledrawable to modify
anglenew angle
-
Sets new offset of drawable
Declaration
Objective-C
- (void)setOffset:(CGPoint)offset forDrawable:(GLMapDrawable *)drawable;Parameters
offsetnew offset
drawabledrawable to modify
-
Moves to new center with animation optimized for long distances.
Declaration
Objective-C
- (void)flyToPoint:(GLMapPoint)point;Parameters
pointTarget location.
-
Moves to new center with animation optimized for long distances.
Declaration
Objective-C
- (void)flyToGeoPoint:(GLMapGeoPoint)geoPoint;Parameters
geoPointTarget location.
-
Uses
fly to
animation to change map position and zoom.Declaration
Objective-C
- (void)useFlyTo; -
Defines the scrolling speed at the end of map scrolling movement.
Declaration
Objective-C
- (void)decelerate:(GLMapPoint)velocity;Parameters
velocityInitial velocity of deceleration
-
Cancels anmation
Declaration
Objective-C
- (void)cancel:(BOOL)setFinalValues;Parameters
setFinalValuesif YES aimatied values will be set to it’s final values.
Install in Dash
GLMapAnimation Class Reference