Home > @magiclane/maps-sdk > GemView > skipAnimation

GemView.skipAnimation() method

Stop the current map animation.

Immediately stops any ongoing animated transition triggered by centering methods. By default, the map completes the animation instantaneously by jumping to the target destination. Set jumpToDestination to false to stop at the current intermediate position instead.

Signature:

skipAnimation(jumpToDestination?: boolean): void;

Parameters

Parameter

Type

Description

jumpToDestination

boolean

(Optional) If true, completes the animation instantly by jumping to the target. If false, stops at the current position.

Returns:

void

Exceptions

An exception if it fails.